C# Class Accord.Statistics.Kernels.Polynomial

Polynomial Kernel
Inheritance: IKernel
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 feature space between two points given in input space.

Function ( double z ) : double

Polynomial kernel function.

Function ( double x, double y ) : double

Polynomial kernel function.

Polynomial ( int degree ) : System

Constructs a new Polynomial kernel of a given degree.

Polynomial ( int degree, double constant ) : System

Constructs a new Polynomial kernel of a given degree.

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, int degree, 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 feature space between two points given in input space.
public Distance ( double x, double y ) : double
x double Vector x in input space.
y double Vector y in input space.
return double

Function() public method

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

Function() public method

Polynomial 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

Polynomial() public method

Constructs a new Polynomial kernel of a given degree.
public Polynomial ( int degree ) : System
degree int The polynomial degree for this kernel.
return System

Polynomial() public method

Constructs a new Polynomial kernel of a given degree.
public Polynomial ( int degree, double constant ) : System
degree int The polynomial degree for this kernel.
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, int degree, double constant ) : double[]
input double The input point to be projected into feature space.
degree int The parameter of the kernel.
constant double The parameter of the kernel.
return double[]