pub struct ShapeConfig {
pub max_lag: usize,
pub period_window: usize,
pub period_hop: usize,
pub novelty_k: usize,
pub novelty_window: usize,
pub template_strength: f32,
pub cp_min_gap: usize,
}Expand description
Knobs for the shape reader. Default suits general token input.
Fields§
§max_lag: usizeLargest token-lag the period search considers.
period_window: usizeTrailing token window the period autocorrelation runs over.
period_hop: usizeRecompute the period every period_hop tokens (held between), so total
periodicity work stays under a fixed op budget on large inputs.
novelty_k: usizeSilhouette n-gram order for novelty / change-point.
novelty_window: usizeSliding window (in n-grams) the novelty count map spans.
template_strength: f32A shape-period run is a template when its strength clears this.
cp_min_gap: usizeMinimum tokens between two change-points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeConfig
impl RefUnwindSafe for ShapeConfig
impl Send for ShapeConfig
impl Sync for ShapeConfig
impl Unpin for ShapeConfig
impl UnsafeUnpin for ShapeConfig
impl UnwindSafe for ShapeConfig
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