pub enum Penalty {
Bic,
Custom(f64),
}Expand description
Penalty selection for the PELT algorithm.
Variants§
Bic
BIC penalty: p * ln(n) where p = parameters per segment, times the
estimated noise variance of each channel for the L2 cost (whose
segments are costed in the data’s units squared).
Reference: Schwarz (1978). Automatically scales with data length.
Custom(f64)
User-specified penalty value (must be positive and finite), in the units of the cost: data units squared for L2.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Penalty
impl RefUnwindSafe for Penalty
impl Send for Penalty
impl Sync for Penalty
impl Unpin for Penalty
impl UnsafeUnpin for Penalty
impl UnwindSafe for Penalty
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