pub struct LocallyPeriodicKernel { /* private fields */ }Expand description
Locally Periodic kernel: RBF × Periodic
K(x, y) = k_rbf(x, y) * k_periodic(x, y)
Models functions that are periodic but whose amplitude varies smoothly. The RBF component controls the locality (how quickly periodicity decays), while the periodic component captures the repetitive structure.
Implementations§
Source§impl LocallyPeriodicKernel
impl LocallyPeriodicKernel
Sourcepub fn new(
period: f64,
periodic_length_scale: f64,
rbf_length_scale: f64,
) -> Result<Self>
pub fn new( period: f64, periodic_length_scale: f64, rbf_length_scale: f64, ) -> Result<Self>
Create a new Locally Periodic kernel.
§Arguments
period- Period of the repetitive patternperiodic_length_scale- Length scale within each periodrbf_length_scale- How quickly the periodic pattern decays
Sourcepub fn periodic_length_scale(&self) -> f64
pub fn periodic_length_scale(&self) -> f64
Get the periodic length scale.
Sourcepub fn rbf_length_scale(&self) -> f64
pub fn rbf_length_scale(&self) -> f64
Get the RBF length scale.
Trait Implementations§
Source§impl Clone for LocallyPeriodicKernel
impl Clone for LocallyPeriodicKernel
Source§fn clone(&self) -> LocallyPeriodicKernel
fn clone(&self) -> LocallyPeriodicKernel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocallyPeriodicKernel
impl Debug for LocallyPeriodicKernel
Auto Trait Implementations§
impl Freeze for LocallyPeriodicKernel
impl RefUnwindSafe for LocallyPeriodicKernel
impl Send for LocallyPeriodicKernel
impl Sync for LocallyPeriodicKernel
impl Unpin for LocallyPeriodicKernel
impl UnwindSafe for LocallyPeriodicKernel
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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