Description
Time offset of a caller-identified waveform peak sample, not automatic peak detection or a clinical timing metric.
A bench or research calculation starts from supplied measurements, reference values, and unit conventions. A transformed value, timing difference, or support fraction describes that model; its clinical meaning depends on measurement validity and a separate professional assessment.
Time offset of a caller-identified waveform peak sample, not automatic peak detection or a clinical timing metric.
When to use this tool
Use it for respiratory flow peak sample offset when the required inputs and conventions are already available.
How to use the tool and how it works
- Enter peakSample, startSample, sampleHz, displayDelaySeconds. Use the stated units and boundary conventions.
- Run the calculation. Correct any input error before interpreting a result.
- Read rawPeakTime, correctedPeakTime. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.
Require nonnegative integer peakSample and startSample and positive sampleHz. Return rawPeakTime=(peakSample-startSample)/sampleHz in seconds and correctedPeakTime=rawPeakTime-displayDelaySeconds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| peakSample | Peak Sample | Required. Safe integer; minimum 0. |
| startSample | Start Sample | Required. Safe integer; minimum 0. |
| sampleHz | Sample Hz | Required. Finite number; strictly above 0. |
| displayDelaySeconds | Display Delay Seconds | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| rawPeakTime | Raw Peak Time | Required. Finite number. |
| correctedPeakTime | Corrected Peak Time | Required. Finite number. |
{
"input": {
"peakSample": 250,
"startSample": 100,
"sampleHz": 1000,
"displayDelaySeconds": 0.01
},
"output": {
"rawPeakTime": 0.15,
"correctedPeakTime": 0.13999999999999999
}
} Limitations and assumptions
- A peak index before the start index produces a negative time. The tool does not find a peak, resample a signal, or infer acquisition and display delays.
- The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
- Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.
Alternative or Complementary methods
For respiratory flow peak sample offset, check the source records and the supplied rule before comparing the result with another method. Use an appropriately validated measurement or analysis method for clinical interpretation.
References
Similar or alternative tools
- Breath Volume Sample Increment
Return one rectangular research airflow-volume contribution with signed flow.
- Exhalation Valid Sample Share
Audit caller-classified research sample validity without spirometry acceptability rules.