Skip to content

Main content

Sample Circadian Phase Fraction Tool

Locate a research sample on a caller-defined periodic clock; no biological phase is inferred.

Loading tool…

Description

Return phaseFraction as (sampleAt-cycleOrigin) wrapped modulo cycleDuration, divided by cycleDuration.

Endocrine sampling can be labeled relative to a declared periodic origin. Wrapped clock phase, cycle count and biological circadian phase are different concepts; a supplied offset or period is not a physiological measurement.

Return phaseFraction as (sampleAt-cycleOrigin) wrapped modulo cycleDuration, divided by cycleDuration.

When to use this tool

Use Sample Circadian Phase Fraction when mapping a supplied sampling time onto a declared cycle.

How to use the tool and how it works

  1. Enter sampleAt, cycleOrigin, cycleDuration. 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 phaseFraction. Use the output convention below.

Require positive cycleDuration. Return phaseFraction as (sampleAt-cycleOrigin) wrapped modulo cycleDuration, divided by cycleDuration. If direct subtraction overflows, reduce each coordinate first and then take their wrapped difference.1

Input fieldMeaning and unitsAccepted input
sampleAtSample AtRequired. Finite number.
cycleOriginCycle OriginRequired. Finite number.
cycleDurationCycle DurationRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
phaseFractionPhase FractionRequired. Finite number.
json
{
  "input": {
    "sampleAt": 30,
    "cycleOrigin": 0,
    "cycleDuration": 24
  },
  "output": {
    "phaseFraction": 0.25
  }
}

Limitations and assumptions

  • The fraction lies on the declared cycle and uses common time units. It does not determine a biological period, infer hormone timing or establish a clinical reference range.
  • 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 an appropriate biological timing assessment and synchronized records when real circadian phase matters.

References

  1. Calculation and input contract: endocrinology/sample-circadian-phase-fraction — tool.io

Similar or alternative tools