Skip to content

Main content

Momentary Sampling Point State Tag Tool

Exact recorded instant lookup; a missing instant returns found=false rather than interpolating a behavioral state.

Loading tool…

Description

Return state at an exact recorded sampling time.

Behavioral-study coding depends on observation intervals, missing samples, event records and assignment rules. Partial-, whole- and momentary-sampling summaries answer different questions; local agreement or coverage does not establish actual behavior, a diagnosis or an effective intervention.

Return state at an exact recorded sampling time.

When to use this tool

Use Momentary Sampling Point State Tag when checking the stated behavioral-research observation, assignment, coverage or coding convention.

How to use the tool and how it works

  1. Enter times, states, sampleTime. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read found, state, index. Inspect found, state before interpreting the associated values.

Return state at an exact recorded sampling time. Require aligned arrays with strictly increasing times; index is exact sampleTime lookup, state is its Boolean or false with found false and index -1.1

Input fieldMeaning and unitsAccepted input
timesTimesRequired. Array of finite number; maximum items 256.
statesStatesRequired. Array of boolean; maximum items 256.
sampleTimeSample TimeRequired. Finite number.
Output fieldInterpretationReturned shape
foundFoundRequired. Boolean.
stateSupplied Boolean at exact sample time, or false placeholder when found=false.Required. Boolean.
indexZero-based exact match, or -1 when absent.Required. Safe integer.
json
{
  "input": {
    "times": [
      1,
      2,
      3
    ],
    "states": [
      false,
      true,
      false
    ],
    "sampleTime": 2
  },
  "output": {
    "found": true,
    "state": true,
    "index": 1
  }
}

Limitations and assumptions

  • No interpolation or nearest-time lookup occurs; missing false is not an observed inactive state.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use verified observations and the study’s complete sampling/coding protocol, with appropriate statistical and professional interpretation for health or intervention decisions.

References

  1. Calculation and input contract: behavioral-science/momentary-sampling-point-state-tag — tool.io

Similar or alternative tools