Description
Compute abs(secondKnot - firstKnot).
Interpolation knots divide a coordinate range into intervals. Repeated nodes, unequal spacing, and exact boundary selection can change how a piecewise interpolant is interpreted.
Compute abs(secondKnot - firstKnot).
When to use this tool
Use Knot Coalescence Distance when you need one knot-interval or multiplicity diagnostic.
How to use the tool and how it works
- Enter firstKnot, secondKnot, tolerance, equalityCoalesces. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read distance, coalesces. Inspect coalesces before interpreting the associated values.
Compute abs(secondKnot - firstKnot). Compare with nonnegative tolerance using ≤ when equalityCoalesces is true, otherwise <.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstKnot | First Knot | Required. Finite number. |
| secondKnot | Second Knot | Required. Finite number. |
| tolerance | Tolerance | Required. Finite number; minimum 0. |
| equalityCoalesces | Equality Coalesces | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| distance | Distance | Required. Finite number. |
| coalesces | Coalesces | Required. Boolean. |
json
{
"input": {
"firstKnot": 1,
"secondKnot": 1.5,
"tolerance": 0.5,
"equalityCoalesces": true
},
"output": {
"distance": 0.5,
"coalesces": true
}
} Limitations and assumptions
- Coalesces is a supplied threshold policy; no nodes are merged and exact floating-point comparisons have no hidden tolerance.
- 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
Validate the complete knot sequence and interpolation method, including tolerance and extrapolation policies.
References
Similar or alternative tools
- Interpolation: Interpolation Duplicate Node Value Conflict
Mark duplicateNode for exactly equal nodes.
- Knot Spacing Geometric Ratio
Return both adjacent spacings and nextSpacing / previousSpacing.