Visual Rhythm Motif Repetition Interval Counter

Intervals between actual independently identified matching motifs on one ordered measurement axis; unmatched motifs do not reset the interval. No automatic visual rhythm or aesthetic effect inferred.

Description

Visual repetition can be summarized through intervals between independently identified instances of one motif.

Visual repetition can be summarized through intervals between independently identified instances of one motif.1

This tool returns matching positions and their consecutive intervals along a measured axis.

When to use Visual Rhythm Motif Repetition Interval Counter

Use this tool to obtain matching positions and their consecutive intervals along a measured axis.

How to use Visual Rhythm Motif Repetition Interval Counter and how it works

  1. Establish the observations, units, reference context and assumptions described below.
  2. Enter independentlyObservedMotifIds, independentlyMeasuredPositions, queryMotifId and run the tool.
  3. Read result.matchedPositionIndices, result.consecutiveMatchedIntervals using the meanings and sign conventions below.
  4. Correct any rejected inputs and rerun; independently review the result under the stated scope.
Input fieldMeaningValue typeRequirement
independentlyObservedMotifIdsNonblank observed motif IDs; repeats are allowed and matching is exact.array of stringRequired; branch conditions below
independentlyMeasuredPositionsFinite strictly increasing positions aligned with motif IDs, on one measurement axis.array of numberRequired; branch conditions below
queryMotifIdNonblank exact case-sensitive motif ID; absence succeeds with empty results.stringRequired; branch conditions below

Supply aligned nonempty motif-ID and finite position arrays, with positions strictly increasing, and a nonblank query ID. Motif IDs must be nonblank but may repeat. Match IDs exactly and case-sensitively, retaining their zero-based indices; subtract positions of successive matches even if other motifs intervene. An absent motif succeeds with empty index and interval lists; one match has no interval.

matchedIndices=all i with motifId_i===query; intervals_j=position_(match_(j+1))-position_(match_j)

Use the stated ordering, units and branch conditions.

Output fieldMeaningValue type
resultObject containing the fields below.object
result.matchedPositionIndicesZero-based indices of exact motif matches in original order.array of number
result.consecutiveMatchedIntervalsDistances between consecutive matches in the position unit; intervening other motifs do not reset them.array of number
json
{
  "input": {
    "independentlyObservedMotifIds": [
      "a",
      "b",
      "a",
      "a"
    ],
    "independentlyMeasuredPositions": [
      0,
      1,
      3,
      5
    ],
    "queryMotifId": "a"
  },
  "output": {
    "result": {
      "matchedPositionIndices": [
        0,
        2,
        3
      ],
      "consecutiveMatchedIntervals": [
        3,
        2
      ]
    }
  }
}

Limitations and assumptions

The calculation depends on independently established observations, coefficients and the matching units. It does not collect data, choose a treatment or target, establish model applicability or provide a validated forecast. Interpret its result within the branch conditions and assumptions above.

Supply explicit values and dense aligned arrays. Unexpected fields, wrong types and nonfinite scalar values are rejected; fixed-token, alignment and other branch conditions are explained above. A successful false flag, empty match list or unknown-evidence list differs from an input error. Extremely large inputs or nonrepresentable results may fail.

Alternative or Complementary methods

Use Rule of Thirds Composition Grid Checker for a related operation: A rule-of-thirds grid places lines at one third and two thirds of normalized image dimensions.

Use Focal Point Dominance Hierarchy Guide Lookup for a related operation: Focal hierarchy depends on relationships among contrast, scale, position and viewing context.

References

  1. Visual Rhythm Motif Repetition Interval Counter — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies