Description
For each adjacent pair return next minus previous when both are present; otherwise return delta zero and valid false.
An adjacent delta requires two available values. A missing endpoint should be carried as an unavailable result rather than silently interpreted as a measured zero change.
For each adjacent pair return next minus previous when both are present; otherwise return delta zero and valid false.
When to use this tool
Use List Adjacent Delta Missing Policy when you need adjacent differences with aligned missing-value flags.
How to use the tool and how it works
- Enter values, missing. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read deltas, valid. Use the output convention below.
Require aligned values and missing flags. For each adjacent pair return next minus previous when both are present; otherwise return delta zero and valid false.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| values | Values | Required. Array of finite number; maximum items 256. |
| missing | Missing | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| deltas | Deltas | Required. Array of finite number; maximum items 256. |
| valid | Whether this narrowly scoped condition passes; it is not necessarily full-document validity. | Required. Array of boolean; maximum items 256. |
{
"input": {
"values": [
2,
5,
9
],
"missing": [
false,
false,
true
]
},
"output": {
"deltas": [
3,
0
],
"valid": [
true,
false
]
}
} Limitations and assumptions
- Invalid zeros are placeholders and must be read with valid; gaps are not bridged or imputed.
- 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
Retain missingness through aggregation and choose a separate interpolation or gap-bridging policy if needed.
References
Similar or alternative tools
- List Mask Unknown Value Count
Accept only the literal strings true, false, and unknown.
- Piecewise Linear One Knot Curvature
Subtract the left segment's secant slope from the right segment's slope for slopeJump.