Skip to content

Main content

Sampled State Hold Age Tool

Calculate sampled state hold age from explicit caller-supplied inputs.

Loading tool…

Description

Return sample age and completed hold periods.

Sampled control models distinguish physical delay, held-state age, phase convention and quantization. A local frequency factor or error envelope assumes the stated sample and signal model, rather than measuring actual sensor or plant behavior.

Return sample age and completed hold periods.

When to use this tool

Use Sampled State Hold Age when checking one supplied sample, delay or quantization convention.

How to use the tool and how it works

  1. Enter sampleAt, evaluationAt, holdPeriod. 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 age, completedPeriods. Use the output convention below.

Return sample age and completed hold periods. Require positive holdPeriod and evaluationAt >= sampleAt; age is their difference and completedPeriods = floor(age/period).1

Input fieldMeaning and unitsAccepted input
sampleAtSample AtRequired. Finite number.
evaluationAtEvaluation AtRequired. Finite number.
holdPeriodHold PeriodRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
ageAgeRequired. Finite number.
completedPeriodsCompleted PeriodsRequired. Safe integer.
json
{
  "input": {
    "sampleAt": 10,
    "evaluationAt": 35,
    "holdPeriod": 10
  },
  "output": {
    "age": 25,
    "completedPeriods": 2
  }
}

Limitations and assumptions

  • This measures supplied timing only, not actual sample freshness or system behavior.
  • 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 a validated sampled-system and measurement model for practical control design, operating limits and safety.

References

  1. Calculation and input contract: cybernetics/sampled-state-hold-age — tool.io

Similar or alternative tools