pub enum Map0132 {
Identity,
Linear {
max: Score32,
},
IncSigmoid {
low: Score32,
high: Score32,
},
DecSigmoid {
low: Score32,
high: Score32,
},
Cauchy {
center: Score32,
scale: Score32,
},
Custom(fn(Score32) -> Score32),
}Expand description
Normalization strategy that maps a raw measure to [0, 1].
All variants except Custom guarantee the output is in
[0, 1] by construction. Custom is validated at evaluation time via
Value01::witness.
Variants§
Identity
Clamp raw to [0, 1].
Linear
raw / max, clamped to [0, 1].
IncSigmoid
Increasing sigmoid: low → 0, high → 1.
DecSigmoid
Decreasing sigmoid: low → 1, high → 0.
Cauchy
Cauchy (Lorentzian) distribution, symmetric about center.
Custom(fn(Score32) -> Score32)
User-provided normalization function.
The function receives the raw measure value and must return a value in
[0, 1]. The output is validated at evaluation time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Map0132
impl RefUnwindSafe for Map0132
impl Send for Map0132
impl Sync for Map0132
impl Unpin for Map0132
impl UnsafeUnpin for Map0132
impl UnwindSafe for Map0132
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more