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

Inheritance: KernelBase, IKernel, ITransform
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Distance() public méthode

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.
Résultat double

Function() public méthode

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.
Résultat double

Product() public static méthode

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.
Résultat double

SparseLinear() public méthode

Constructs a new Linear Kernel.
public SparseLinear ( ) : System
Résultat System

SparseLinear() public méthode

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

SquaredEuclidean() public static méthode

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.
Résultat double