pub struct NormParams {
pub mean: f64,
pub std_dev: f64,
pub min: f64,
pub max: f64,
}Expand description
Per-dimension learned parameters.
identity() yields {mean=0, std_dev=1, min=0, max=1} —
applied under NormStrategy::ZScore or
NormStrategy::MinMax the transform reduces to the input
unchanged when the value lies inside [0, 1].
Fields§
§mean: f64Mean for z-score normalisation.
std_dev: f64Standard deviation for z-score normalisation.
min: f64Minimum observed value for min-max normalisation.
max: f64Maximum observed value for min-max normalisation.
Implementations§
Source§impl NormParams
impl NormParams
Trait Implementations§
Source§impl Clone for NormParams
impl Clone for NormParams
Source§fn clone(&self) -> NormParams
fn clone(&self) -> NormParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormParams
impl Debug for NormParams
Source§impl Default for NormParams
impl Default for NormParams
Source§impl<'de> Deserialize<'de> for NormParams
impl<'de> Deserialize<'de> for NormParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NormParams
impl PartialEq for NormParams
Source§impl Serialize for NormParams
impl Serialize for NormParams
impl Copy for NormParams
impl StructuralPartialEq for NormParams
Auto Trait Implementations§
impl Freeze for NormParams
impl RefUnwindSafe for NormParams
impl Send for NormParams
impl Sync for NormParams
impl Unpin for NormParams
impl UnsafeUnpin for NormParams
impl UnwindSafe for NormParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more