Description
Check nonnegative unit-sum weights under an explicit absolute sum tolerance.
Normalization depends on the supplied center, scale, norm, range, reference distribution, or denominator. A zero spread and a missing denominator need an explicit policy, and clipping differs from fitting a scaler. Evaluating one scalar or derivative term does not estimate every parameter or establish a distributional improvement.
Check nonnegative unit-sum weights under an explicit absolute sum tolerance.
When to use this tool
Use Simplex Signed Weight Domain Flag when you already have the required normalization parameters and need this local scalar, range, policy, or derivative term.
How to use the tool and how it works
- Enter weights, tolerance. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read sum, nonnegative, normalized, simplex. Inspect nonnegative, normalized, simplex before interpreting the associated values.
For nonnegative tolerance return sum, nonnegative when every weight>=0, and normalized when abs(sum-1)<=tolerance. Return simplex only when the list is nonempty and both checks pass.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| weights | Weights | Required. Array of finite number; maximum items 256. |
| tolerance | Nonnegative absolute allowance in the compared quantity's unit. | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| sum | Sum | Required. Finite number. |
| nonnegative | Nonnegative | Required. Boolean. |
| normalized | Scalar transformed under the stated formula and zero policy. | Required. Boolean. |
| simplex | Nonempty list satisfying both nonnegativity and supplied sum tolerance. | Required. Boolean. |
{
"input": {
"weights": [
0.2,
0.8
],
"tolerance": 0
},
"output": {
"sum": 1,
"nonnegative": true,
"normalized": true,
"simplex": true
}
} Limitations and assumptions
- These are flags, not a projection or renormalization. With an empty list nonnegative is true and normalized can be true at a large tolerance, but simplex remains false; the tool does not choose an appropriate tolerance or probability model.
- 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
Fit or verify the intended scaler parameters and statistical model separately. Check units, zero policies, missingness, clipping, inverse conventions, and whether supplied norms or denominators belong to the same data.
References
Similar or alternative tools
- Unit Sum Residual
Measure the signed difference from unit sum without changing or constraining supplied signed weights.
- Rowwise Normalization Selected Cell
Return denominator=sum(row) and value=row[index]/denominator.