pub struct AdaptiveKernelMatrix { /* private fields */ }Expand description
Adaptive kernel with automatic bandwidth adjustment.
Updates kernel parameters based on incoming data statistics.
Implementations§
Source§impl AdaptiveKernelMatrix
impl AdaptiveKernelMatrix
Sourcepub fn new<F>(
kernel_factory: F,
initial_bandwidth: f64,
adaptation_rate: f64,
) -> Self
pub fn new<F>( kernel_factory: F, initial_bandwidth: f64, adaptation_rate: f64, ) -> Self
Create adaptive kernel with bandwidth factory function.
Sourcepub fn add_sample(&mut self, sample: Vec<f64>) -> Result<()>
pub fn add_sample(&mut self, sample: Vec<f64>) -> Result<()>
Add sample with adaptive bandwidth update.
Sourcepub fn get_matrix(&self) -> &Vec<Vec<f64>>
pub fn get_matrix(&self) -> &Vec<Vec<f64>>
Get the underlying matrix.
Auto Trait Implementations§
impl Freeze for AdaptiveKernelMatrix
impl !RefUnwindSafe for AdaptiveKernelMatrix
impl Send for AdaptiveKernelMatrix
impl Sync for AdaptiveKernelMatrix
impl Unpin for AdaptiveKernelMatrix
impl !UnwindSafe for AdaptiveKernelMatrix
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more