pub struct ArdMaternKernel { /* private fields */ }Expand description
ARD Matérn kernel with per-dimension length scales.
Supports Matérn with nu = 0.5 (exponential), 1.5, and 2.5.
Implementations§
Source§impl ArdMaternKernel
impl ArdMaternKernel
Sourcepub fn new(length_scales: Vec<f64>, nu: f64) -> Result<Self>
pub fn new(length_scales: Vec<f64>, nu: f64) -> Result<Self>
Create a new ARD Matérn kernel.
§Arguments
length_scales- Per-dimension length scalesnu- Smoothness parameter (must be 0.5, 1.5, or 2.5)
Sourcepub fn with_variance(
length_scales: Vec<f64>,
nu: f64,
variance: f64,
) -> Result<Self>
pub fn with_variance( length_scales: Vec<f64>, nu: f64, variance: f64, ) -> Result<Self>
Create ARD Matérn kernel with custom variance.
Sourcepub fn exponential(length_scales: Vec<f64>) -> Result<Self>
pub fn exponential(length_scales: Vec<f64>) -> Result<Self>
Create ARD Matérn 1/2 kernel (exponential).
Sourcepub fn length_scales(&self) -> &[f64]
pub fn length_scales(&self) -> &[f64]
Get the length scales.
Trait Implementations§
Source§impl Clone for ArdMaternKernel
impl Clone for ArdMaternKernel
Source§fn clone(&self) -> ArdMaternKernel
fn clone(&self) -> ArdMaternKernel
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 ArdMaternKernel
impl Debug for ArdMaternKernel
Auto Trait Implementations§
impl Freeze for ArdMaternKernel
impl RefUnwindSafe for ArdMaternKernel
impl Send for ArdMaternKernel
impl Sync for ArdMaternKernel
impl Unpin for ArdMaternKernel
impl UnwindSafe for ArdMaternKernel
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