pub struct MaternKernel {
pub length_scale: f64,
pub signal_variance: f64,
pub nu: f64,
}Expand description
Matérn kernel implementation
Fields§
§length_scale: f64Length scale parameter
signal_variance: f64Signal variance parameter
nu: f64Smoothness parameter (nu)
Implementations§
Trait Implementations§
Source§impl Clone for MaternKernel
impl Clone for MaternKernel
Source§fn clone(&self) -> MaternKernel
fn clone(&self) -> MaternKernel
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 MaternKernel
impl Debug for MaternKernel
Source§impl SparseKernel for MaternKernel
impl SparseKernel for MaternKernel
Source§fn kernel_matrix(&self, x1: &Array2<f64>, x2: &Array2<f64>) -> Array2<f64>
fn kernel_matrix(&self, x1: &Array2<f64>, x2: &Array2<f64>) -> Array2<f64>
Compute kernel matrix between two sets of points
Source§fn kernel_diagonal(&self, x: &Array2<f64>) -> Array1<f64>
fn kernel_diagonal(&self, x: &Array2<f64>) -> Array1<f64>
Compute kernel diagonal (for efficiency when x1 == x2)
Source§fn parameters(&self) -> Vec<f64>
fn parameters(&self) -> Vec<f64>
Get kernel hyperparameters
Source§fn set_parameters(&mut self, params: &[f64])
fn set_parameters(&mut self, params: &[f64])
Set kernel hyperparameters
Auto Trait Implementations§
impl Freeze for MaternKernel
impl RefUnwindSafe for MaternKernel
impl Send for MaternKernel
impl Sync for MaternKernel
impl Unpin for MaternKernel
impl UnwindSafe for MaternKernel
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