Description
Inspect the supplied Bray-Curtis input domain.
Discrete distances depend on the representation of symbols, sets and counts. A local mismatch or count update assumes the surrounding sequence or set bookkeeping is already correct.
Inspect the supplied Bray-Curtis input domain.
When to use this tool
Use Bray Curtis Negative Input Domain Check when checking a supplied discrete-distance contribution or update.
How to use the tool and how it works
- Enter first, second. 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 nonnegativeDomain, positiveDenominator. Inspect nonnegativeDomain, positiveDenominator before interpreting the associated values.
Inspect the supplied Bray-Curtis input domain. Require equally long arrays; nonnegativeDomain checks every element >= 0, while positiveDenominator tests the combined raw sum > 0 independently.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| first | First | Required. Array of finite number; maximum items 256. |
| second | Second | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| nonnegativeDomain | All supplied array elements are nonnegative. | Required. Boolean. |
| positiveDenominator | Combined raw sum is positive; this flag is independent of nonnegativeDomain. | Required. Boolean. |
{
"input": {
"first": [
1,
-2
],
"second": [
3,
4
]
},
"output": {
"nonnegativeDomain": false,
"positiveDenominator": true
}
} Limitations and assumptions
- No dissimilarity is calculated; signed arrays can pass only the denominator flag.
- 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
Use the full sequences or sets to establish the original distance and actual operation before applying a local update.
References
Similar or alternative tools
- Distance: Discrete Symbol Mismatch Cost
Return a literal symbol mismatch cost.
- Hamming Distance Single Symbol Update
Update a Hamming count after one symbol replacement.