[][src]Struct friedrich::kernel::SquaredExp

pub struct SquaredExp {
    pub ls: f64,
    pub ampl: f64,
}

Squared exponential kernel

Equivalent to a gaussian kernel.

k(x,y) = A exp(-||x-y||² / 2l²)

Where A is the amplitude and l the length scale.

Fields

ls: f64

The length scale of the kernel.

ampl: f64

The amplitude of the kernel.

Methods

impl SquaredExp[src]

pub fn new(ls: f64, ampl: f64) -> SquaredExp[src]

Construct a new squared exponential kernel (gaussian).

Trait Implementations

impl Kernel for SquaredExp[src]

fn kernel<S1: Storage<f64, U1, Dynamic>, S2: Storage<f64, U1, Dynamic>>(
    &self,
    x1: &Matrix<f64, U1, Dynamic, S1>,
    x2: &Matrix<f64, U1, Dynamic, S2>
) -> f64
[src]

The squared exponential kernel function.

impl Clone for SquaredExp[src]

impl Copy for SquaredExp[src]

impl Default for SquaredExp[src]

Constructs the default Squared Exp kernel.

The defaults are:

  • ls = 1
  • ampl = 1

impl Debug for SquaredExp[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,