pub struct L2Sequence {
pub terms: Vec<f64>,
pub max_terms: usize,
}Fields§
§terms: Vec<f64>§max_terms: usizeImplementations§
Source§impl L2Sequence
impl L2Sequence
pub fn new(terms: Vec<f64>) -> Self
pub fn l2_norm(&self) -> f64
pub fn is_in_l2(&self) -> bool
pub fn inner_product(&self, other: &Self) -> f64
pub fn shift_left(&self) -> Self
pub fn shift_right(&self) -> Self
pub fn seq_add(&self, other: &Self) -> Self
pub fn seq_scale(&self, c: f64) -> Self
pub fn convolve(&self, other: &Self) -> Self
pub fn parseval_residual(&self) -> f64
Auto Trait Implementations§
impl Freeze for L2Sequence
impl RefUnwindSafe for L2Sequence
impl Send for L2Sequence
impl Sync for L2Sequence
impl Unpin for L2Sequence
impl UnsafeUnpin for L2Sequence
impl UnwindSafe for L2Sequence
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