pub enum FieldValueFactorModifier {
None,
Log,
Log1P,
Log2P,
Ln,
Ln1P,
Ln2P,
Square,
Sqrt,
Reciprocal,
}Expand description
Modifier to apply to the field value
Defaults to none
Variants§
None
Do not apply any multiplier to the field value
Log
Take the common logarithm of the field value
Because this function will return a negative value and cause an error if used on values
between 0 and 1, it is recommended to use log1p
instead.
Log1P
Add 1 to the field value and take the common logarithm
Log2P
Add 2 to the field value and take the common logarithm
Ln
Take the natural logarithm of the field value.
Because this function will return a negative value and cause an error if used on values
between 0 and 1, it is recommended to use ln1p
instead.
Ln1P
Add 1 to the field value and take the natural logarithm
Ln2P
Add 2 to the field value and take the natural logarithm
Square
Square the field value (multiply it by itself)
Sqrt
Take the square root of the field value
Reciprocal
Reciprocate the field value, same
as 1/x where x is the field’s value
Trait Implementations§
source§impl Clone for FieldValueFactorModifier
impl Clone for FieldValueFactorModifier
source§fn clone(&self) -> FieldValueFactorModifier
fn clone(&self) -> FieldValueFactorModifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FieldValueFactorModifier
impl Debug for FieldValueFactorModifier
source§impl Ord for FieldValueFactorModifier
impl Ord for FieldValueFactorModifier
source§fn cmp(&self, other: &FieldValueFactorModifier) -> Ordering
fn cmp(&self, other: &FieldValueFactorModifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for FieldValueFactorModifier
impl PartialEq for FieldValueFactorModifier
source§impl PartialOrd for FieldValueFactorModifier
impl PartialOrd for FieldValueFactorModifier
source§impl Serialize for FieldValueFactorModifier
impl Serialize for FieldValueFactorModifier
impl Copy for FieldValueFactorModifier
impl Eq for FieldValueFactorModifier
impl StructuralPartialEq for FieldValueFactorModifier
Auto Trait Implementations§
impl Freeze for FieldValueFactorModifier
impl RefUnwindSafe for FieldValueFactorModifier
impl Send for FieldValueFactorModifier
impl Sync for FieldValueFactorModifier
impl Unpin for FieldValueFactorModifier
impl UnwindSafe for FieldValueFactorModifier
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)