pub enum ParameterMapping {
Linear,
Exponential,
Logarithmic,
Inverted,
Custom(Arc<dyn Fn(f64) -> f64 + Send + Sync>),
}Expand description
Transfer function for mapping raw automaton output [0,1] to parameter space.
Variants§
Linear
Identity: output equals input.
Exponential
Square mapping: finer control near zero.
Logarithmic
Logarithmic mapping: finer control near maximum.
Inverted
Inverted: 1.0 maps to 0.0 and vice versa.
Custom(Arc<dyn Fn(f64) -> f64 + Send + Sync>)
User-defined custom mapping function.
Implementations§
Trait Implementations§
Source§impl Clone for ParameterMapping
impl Clone for ParameterMapping
Source§fn clone(&self) -> ParameterMapping
fn clone(&self) -> ParameterMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParameterMapping
impl !RefUnwindSafe for ParameterMapping
impl Send for ParameterMapping
impl Sync for ParameterMapping
impl Unpin for ParameterMapping
impl UnsafeUnpin for ParameterMapping
impl !UnwindSafe for ParameterMapping
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