BooleanNormalization class
Boolean normalization: converts truthy/falsy to 1.0/0.0. Threshold determines the boundary (default: 0.5). Values >= threshold → 1.0, values < threshold → 0.0.
- Inheritance
-
- Object
- NormalizationConfig
- BooleanNormalization
Constructors
- BooleanNormalization({double threshold = 0.5})
-
const
-
BooleanNormalization.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
normalize(
double value) → double -
Normalize a raw value.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited