Description
Return l1Mass=sum(abs(values)), defined when any element is nonzero, and reciprocalMass=1/l1Mass when defined or zero otherwise.
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.
Return l1Mass=sum(abs(values)), defined when any element is nonzero, and reciprocalMass=1/l1Mass when defined or zero otherwise.
When to use this tool
Use Signed L1 Mass Factor 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 values. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read l1Mass, reciprocalMass, defined. Inspect defined before interpreting the associated values.
Return l1Mass=sum(abs(values)), defined when any element is nonzero, and reciprocalMass=1/l1Mass when defined or zero otherwise.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| values | Values | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| l1Mass | L1 Mass | Required. Finite number. |
| reciprocalMass | Reciprocal absolute sum when defined, otherwise zero placeholder. | Required. Finite number. |
| defined | Whether the stated denominator or quantity is defined; inspect before using a placeholder. | Required. Boolean. |
{
"input": {
"values": [
2,
-3,
0
]
},
"output": {
"l1Mass": 5,
"reciprocalMass": 0.2,
"defined": true
}
} Limitations and assumptions
- The empty and all-zero cases use an undefined reciprocal placeholder. Signed values contribute by magnitude; no normalized vector is returned, and a tiny positive mass can make its reciprocal exceed the finite output range.
- 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
- Scalar Norm Reference Zero Policy
For nonnegative norm return defined=(norm>0) and normalized=value/norm when positive, otherwise the supplied zeroValue.
- Rowwise Normalization Selected Cell
Return denominator=sum(row) and value=row[index]/denominator.