pub struct WigglePenaltyConfig {
pub degree: usize,
pub num_internal_knots: usize,
pub penalty_orders: Vec<usize>,
pub double_penalty: bool,
pub monotonicity_eps: f64,
}Expand description
Shared default for monotone wiggle/deviation blocks. Formula DSL defaults, workflow configs, and runtime deviation blocks should all derive from this type so reproducible presets do not drift across layers.
Fields§
§degree: usize§num_internal_knots: usize§penalty_orders: Vec<usize>§double_penalty: bool§monotonicity_eps: f64Implementations§
Source§impl WigglePenaltyConfig
impl WigglePenaltyConfig
pub fn cubic_triple_operator_default() -> Self
Trait Implementations§
Source§impl Clone for WigglePenaltyConfig
impl Clone for WigglePenaltyConfig
Source§fn clone(&self) -> WigglePenaltyConfig
fn clone(&self) -> WigglePenaltyConfig
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 moreSource§impl Debug for WigglePenaltyConfig
impl Debug for WigglePenaltyConfig
Source§impl<'de> Deserialize<'de> for WigglePenaltyConfig
impl<'de> Deserialize<'de> for WigglePenaltyConfig
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
Auto Trait Implementations§
impl Freeze for WigglePenaltyConfig
impl RefUnwindSafe for WigglePenaltyConfig
impl Send for WigglePenaltyConfig
impl Sync for WigglePenaltyConfig
impl Unpin for WigglePenaltyConfig
impl UnsafeUnpin for WigglePenaltyConfig
impl UnwindSafe for WigglePenaltyConfig
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