pub struct ArdRationalQuadraticKernel { /* private fields */ }Expand description
ARD Rational Quadratic kernel.
K(x, y) = σ² * (1 + Σ((x_i - y_i)² / (2 * α * l_i²)))^(-α)
Implementations§
Source§impl ArdRationalQuadraticKernel
impl ArdRationalQuadraticKernel
Sourcepub fn new(length_scales: Vec<f64>, alpha: f64) -> Result<Self>
pub fn new(length_scales: Vec<f64>, alpha: f64) -> Result<Self>
Create a new ARD Rational Quadratic kernel.
Sourcepub fn with_variance(
length_scales: Vec<f64>,
alpha: f64,
variance: f64,
) -> Result<Self>
pub fn with_variance( length_scales: Vec<f64>, alpha: f64, variance: f64, ) -> Result<Self>
Create with custom variance.
Sourcepub fn length_scales(&self) -> &[f64]
pub fn length_scales(&self) -> &[f64]
Get the length scales.
Trait Implementations§
Source§impl Clone for ArdRationalQuadraticKernel
impl Clone for ArdRationalQuadraticKernel
Source§fn clone(&self) -> ArdRationalQuadraticKernel
fn clone(&self) -> ArdRationalQuadraticKernel
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 ArdRationalQuadraticKernel
impl Debug for ArdRationalQuadraticKernel
Auto Trait Implementations§
impl Freeze for ArdRationalQuadraticKernel
impl RefUnwindSafe for ArdRationalQuadraticKernel
impl Send for ArdRationalQuadraticKernel
impl Sync for ArdRationalQuadraticKernel
impl Unpin for ArdRationalQuadraticKernel
impl UnwindSafe for ArdRationalQuadraticKernel
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