Description
Return whole sampling intervals and endpoint-policy sample count.
Cardiac recordings use sample indexes, time origins, event markers and observation windows. A sample-grid count, interval conversion or phase comparison operates on supplied records; it does not detect an actual heartbeat, validate an ECG or determine a clinical diagnosis.
Return whole sampling intervals and endpoint-policy sample count.
When to use this tool
Use RR Interval Sample Count when checking the stated cardiac-record indexing, timing, phase or coverage convention.
How to use the tool and how it works
- Enter durationSeconds, sampleRateHz, includeEndpoint. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read completeIntervals, samples. Use the output convention below.
Return whole sampling intervals and endpoint-policy sample count. Require durationSeconds >= 0 and sampleRateHz > 0; completeIntervals = floor(duration*rate), samples adds one only when includeEndpoint.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| durationSeconds | Duration Seconds | Required. Finite number; minimum 0. |
| sampleRateHz | Sample Rate Hz | Required. Finite number; strictly above 0. |
| includeEndpoint | Include Endpoint | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| completeIntervals | Complete Intervals | Required. Safe integer. |
| samples | Count on the supplied time grid and endpoint policy; no R peaks are detected. | Required. Safe integer. |
{
"input": {
"durationSeconds": 0.8,
"sampleRateHz": 250,
"includeEndpoint": true
},
"output": {
"completeIntervals": 200,
"samples": 201
}
} Limitations and assumptions
- This assumes a uniform sampling grid; actual R peaks, RR intervals and physiological events are not detected.
- 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
Inspect the actual recording, acquisition settings and event annotations; use validated analysis and qualified clinical interpretation for patient-related decisions.
References
Similar or alternative tools
- ECG Sample RR Interval Duration Factor
Return RR duration and reciprocal beat rate from two sample markers.
- ECG Sample To Time Factor
Map a signed sample-index difference to time.