pub trait Kernel<T>where
T: Float,{
// Required methods
fn f(&self, x: T) -> T;
fn df(&self, x: T) -> T;
fn ddf(&self, x: T) -> T;
fn dddf(&self, x: T) -> T;
fn ddddf(&self, x: T) -> T;
fn df_l(&self, x: T) -> T;
fn g(&self, x: T) -> T;
fn g_l(&self, x: T) -> T;
fn h(&self, x: T, a: T) -> T;
}
Expand description
Kernel trait declaring all of the necessary derivatives.
Required Methods§
sourcefn df_l(&self, x: T) -> T
fn df_l(&self, x: T) -> T
Additional function to ensure proper derivatives at x = 0
.
equivalent to df(x)/x
for x != 0
.
This function should be well defined at all values of x
.
sourcefn g(&self, x: T) -> T
fn g(&self, x: T) -> T
Need the following functions for third and fourth HRBF derivaitves
Additional function to ensure proper derivatives at x = 0
.
equivalent to ddf(x)/x - df(x)/(x*x)
for x != 0
.
This function should go to zero as x
goes to zero.