C# Class Accord.Statistics.Kernels.Quadratic

Inheritance: Accord.Statistics.Kernels.KernelBase, IKernel, IDistance, IReverseDistance, ICloneable, ITransform
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

Creates a new object that is a copy of the current instance.

Distance ( double x, double y ) : double

Computes the squared distance in input space between two points given in feature space.

Function ( double z ) : double

Quadratic kernel function.

Function ( double x, double y ) : double

Quadratic kernel function.

Quadratic ( ) : System

Constructs a new Quadratic kernel.

Quadratic ( double constant ) : System

Constructs a new Quadratic kernel.

ReverseDistance ( double x, double y ) : double

Computes the distance in input space between two points given in feature space.

Transform ( double input ) : double[]

Projects an input point into feature space.

Transform ( double input, double constant ) : double[]

Projects an input point into feature space.

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

Distance() public method

Computes the squared distance in input space between two points given in feature space.
public Distance ( double x, double y ) : double
x double Vector x in feature (kernel) space.
y double Vector y in feature (kernel) space.
return double

Function() public method

Quadratic kernel function.
public Function ( double z ) : double
z double Distance z in input space.
return double

Function() public method

Quadratic kernel function.
public Function ( double x, double y ) : double
x double Vector x in input space.
y double Vector y in input space.
return double

Quadratic() public method

Constructs a new Quadratic kernel.
public Quadratic ( ) : System
return System

Quadratic() public method

Constructs a new Quadratic kernel.
public Quadratic ( double constant ) : System
constant double The polynomial constant for this kernel. Default is 1.
return System

ReverseDistance() public method

Computes the distance in input space between two points given in feature space.
public ReverseDistance ( double x, double y ) : double
x double Vector x in feature (kernel) space.
y double Vector y in feature (kernel) space.
return double

Transform() public method

Projects an input point into feature space.
public Transform ( double input ) : double[]
input double The input point to be projected into feature space.
return double[]

Transform() public static method

Projects an input point into feature space.
public static Transform ( double input, double constant ) : double[]
input double The input point to be projected into feature space.
constant double The parameter of the kernel.
return double[]