C# Class Accord.Statistics.Kernels.Sparse.SparseLinear

Inheritance: KernelBase, IKernel, ITransform
ファイルを表示 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 x, double y ) : double

Sparse Linear kernel function.

Product ( double x, double y ) : double

Computes the product of two vectors given in sparse representation.

SparseLinear ( ) : System

Constructs a new Linear Kernel.

SparseLinear ( double constant ) : System

Constructs a new Linear kernel.

SquaredEuclidean ( double x, double y ) : double

Computes the squared Euclidean distance of two vectors given in sparse representation.

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 feature (kernel) space.
y double Vector y in feature (kernel) space.
return double

Function() public method

Sparse Linear kernel function.
public Function ( double x, double y ) : double
x double Sparse vector x in input space.
y double Sparse vector y in input space.
return double

Product() public static method

Computes the product of two vectors given in sparse representation.
public static Product ( double x, double y ) : double
x double The first vector x.
y double The second vector y.
return double

SparseLinear() public method

Constructs a new Linear Kernel.
public SparseLinear ( ) : System
return System

SparseLinear() public method

Constructs a new Linear kernel.
public SparseLinear ( double constant ) : System
constant double A constant intercept term. Default is 0.
return System

SquaredEuclidean() public static method

Computes the squared Euclidean distance of two vectors given in sparse representation.
public static SquaredEuclidean ( double x, double y ) : double
x double The first vector x.
y double The second vector y.
return double