Description
Return equality and the nonnegative modular forwardDelta.
Personal health and activity records use supplied observations, labels, and time intervals. A formatter or simple summary can organize those records without assessing health, diagnosing a condition, or recommending treatment.
Return equality and the nonnegative modular forwardDelta.
When to use this tool
Use Health Device Duplicate Sequence Counter when you need a bounded personal-record calculation with explicit units and date conventions.
How to use the tool and how it works
- Enter previous, current, modulus. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read same, forwardDelta. Inspect same before interpreting the associated values.
Require integer modulus at least two and counters in 0 through modulus-1. Return equality and the nonnegative modular forwardDelta.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previous | Previous | Required. Safe integer; minimum 0. |
| current | Current | Required. Safe integer; minimum 0. |
| modulus | Modulus | Required. Safe integer; minimum 2. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| same | Same | Required. Boolean. |
| forwardDelta | Forward Delta | Required. Safe integer. |
{
"input": {
"previous": 254,
"current": 2,
"modulus": 256
},
"output": {
"same": false,
"forwardDelta": 4
}
} Limitations and assumptions
- A zero delta can be a duplicate or a full unseen wrap; the tool cannot detect multiple wraps, counter resets, lost records, or device accuracy.
- 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
Review the original observations and consult an appropriate health professional for clinical interpretation or care decisions.
References
Similar or alternative tools
- Health: Step Counter Single Reset Offset
Validate each count as an integer from zero through one billion and require afterReset at least resetBaseline.
- Health Log Duplicate Reading Time Gap
Return the absolute epoch-second difference and possibleDuplicate for an inclusive comparison with tolerance.