Struct rusty_machine::learning::toolkit::kernel::Multiquadric [] [src]

pub struct Multiquadric {
    pub c: f64,
}

The Multiquadric Kernel.

k(x,y) = sqrt(||x-y||2 + c2)

Fields

Constant added to square of difference.

Methods

impl Multiquadric
[src]

Constructs a new Multiquadric Kernel.

Examples

use rusty_machine::learning::toolkit::kernel;
use rusty_machine::learning::toolkit::kernel::Kernel;

// Construct a kernel with c = 2.
let ker = kernel::Multiquadric::new(2.0);

println!("{0}", ker.kernel(&[1.,2.,3.], &[3.,4.,5.]));

Trait Implementations

impl Clone for Multiquadric
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Multiquadric
[src]

impl Debug for Multiquadric
[src]

Formats the value using the given formatter.

impl Default for Multiquadric
[src]

Constructs a default Multiquadric Kernel.

The defaults are:

Returns the "default value" for a type. Read more

impl Kernel for Multiquadric
[src]

The kernel function. Read more