C# Class Accord.Statistics.Kernels.TaylorGaussian

Inheritance: Accord.Statistics.Kernels.Gaussian, ITransform
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Add ( double a, double b, double result ) : double[]

Elementwise addition of a and b, storing in result.

Clone ( ) : object

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

Compress ( double weights, double supportVectors, double &c ) : double[]

Compress a set of support vectors and weights into a single parameter vector.

Distance ( double x, double y ) : double

Computes the distance d(x,y) between points x and y.

Function ( double x, double y ) : double

Gaussian Kernel function.

Product ( double a, double b, double result ) : void

Elementwise multiplication of scalar a and vector b, storing in result.

ReverseDistance ( double x, double y ) : double

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

TaylorGaussian ( Accord.Statistics.Kernels.Gaussian gaussian, int degree = 1024 ) : System

Constructs a new TaylorGaussian kernel with the given sigma.

TaylorGaussian ( double sigma, int degree = 1024 ) : System

Constructs a new TaylorGaussian kernel with the given sigma.

Transform ( double input ) : double[]

Projects an input point into feature space.

Private Methods

Method Description
createCoefficients ( int degree ) : void

Method Details

Add() public method

Elementwise addition of a and b, storing in result.
public Add ( double a, double b, double result ) : double[]
a double The first vector to add.
b double The second vector to add.
result double An array to store the result.
return double[]

Clone() public method

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

Compress() public method

Compress a set of support vectors and weights into a single parameter vector.
public Compress ( double weights, double supportVectors, double &c ) : double[]
weights double The weights associated with each support vector.
supportVectors double The support vectors.
c double The constant (bias) value.
return double[]

Distance() public method

Computes the distance d(x,y) between points x and y.
public Distance ( double x, double y ) : double
x double The first point x.
y double The second point y.
return double

Function() public method

Gaussian 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

Product() public method

Elementwise multiplication of scalar a and vector b, storing in result.
public Product ( double a, double b, double result ) : void
a double The scalar to be multiplied.
b double The vector to be multiplied.
result double An array to store the result.
return void

ReverseDistance() public method

Computes the squared 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

TaylorGaussian() public method

Constructs a new TaylorGaussian kernel with the given sigma.
public TaylorGaussian ( Accord.Statistics.Kernels.Gaussian gaussian, int degree = 1024 ) : System
gaussian Accord.Statistics.Kernels.Gaussian The original Gaussian kernel to be approximated.
degree int The Gaussian approximation degree. Default is 1024.
return System

TaylorGaussian() public method

Constructs a new TaylorGaussian kernel with the given sigma.
public TaylorGaussian ( double sigma, int degree = 1024 ) : System
sigma double The kernel's sigma parameter.
degree int The Gaussian approximation degree. Default is 1024.
return System

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[]