Skip to content

Main content

Bray Curtis Negative Input Domain Check Tool

Calculate bray curtis negative input domain check from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter first, second. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
firstFirstRequired. Array of finite number; maximum items 256.
secondSecondRequired. Array of finite number; maximum items 256.
Output fieldInterpretationReturned shape
nonnegativeDomainAll supplied array elements are nonnegative.Required. Boolean.
positiveDenominatorCombined raw sum is positive; this flag is independent of nonnegativeDomain.Required. Boolean.
json
{
  "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

  1. Calculation and input contract: distance/bray-curtis-negative-input-domain-check — tool.io

Similar or alternative tools