pub struct SpectralFrame {
pub bands: [f32; 25],
pub entropy: f32,
pub period: u16,
pub period_strength: f32,
pub novelty: f32,
/* private fields */
}Expand description
One position’s spectral reading.
Fields§
§bands: [f32; 25]Filterbank EMA: bands[d * N_CLASSES + c] is decay d x class c,
each in [0, 1] (fraction of recent bytes in class c at
timescale tau_d).
entropy: f32Rolling Shannon entropy of the local window, normalized to [0, 1].
period: u16Dominant byte-period of the neighborhood (0 = none detected).
period_strength: f32Normalized autocorrelation peak height [0, 1].
novelty: f32k-gram surprise [0, 1] (1 = first sighting in window).
Implementations§
Source§impl SpectralFrame
impl SpectralFrame
Sourcepub fn texture_mix(&self) -> [f32; 5]
pub fn texture_mix(&self) -> [f32; 5]
The class mixture at the medium clock (decay index 2), the band most representative of word / line-scale texture.
Trait Implementations§
Source§impl Clone for SpectralFrame
impl Clone for SpectralFrame
impl Copy for SpectralFrame
Source§impl Debug for SpectralFrame
impl Debug for SpectralFrame
Source§impl Default for SpectralFrame
impl Default for SpectralFrame
Source§impl PartialEq for SpectralFrame
impl PartialEq for SpectralFrame
impl StructuralPartialEq for SpectralFrame
Auto Trait Implementations§
impl Freeze for SpectralFrame
impl RefUnwindSafe for SpectralFrame
impl Send for SpectralFrame
impl Sync for SpectralFrame
impl Unpin for SpectralFrame
impl UnsafeUnpin for SpectralFrame
impl UnwindSafe for SpectralFrame
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