C# Class Accord.Statistics.Kernels.DynamicTimeWarping

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.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Distance ( double x, double y ) : double

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

DynamicTimeWarping ( int length ) : Accord.Math

Constructs a new Dynamic Time Warping kernel.

DynamicTimeWarping ( int length, double alpha ) : Accord.Math

Constructs a new Dynamic Time Warping kernel.

DynamicTimeWarping ( int length, double alpha, int degree ) : Accord.Math

Constructs a new Dynamic Time Warping kernel.

Function ( double x, double y ) : double

Dynamic Time Warping kernel function.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Private Methods

Method Description
D ( Locals locals, double sequence1, double sequence2 ) : double

Global distance D(X,Y) between two sequences of vectors.

initialize ( ) : void
k ( double x, double y ) : double
onDeserialized ( StreamingContext context ) : void
snorm ( double input ) : double[]

Projects vectors from a sequence of vectors into a hypersphere, augmenting their size in one unit and normalizing them to be unit vectors.

Method Details

Clone() public method

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

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed /// and unmanaged resources; false to release only unmanaged /// resources.
return void

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

DynamicTimeWarping() public method

Constructs a new Dynamic Time Warping kernel.
public DynamicTimeWarping ( int length ) : Accord.Math
length int /// The length of the feature vectors /// contained in each sequence. ///
return Accord.Math

DynamicTimeWarping() public method

Constructs a new Dynamic Time Warping kernel.
public DynamicTimeWarping ( int length, double alpha ) : Accord.Math
length int /// The length of the feature vectors /// contained in each sequence. ///
alpha double /// The hypersphere ratio. Default value is 1. ///
return Accord.Math

DynamicTimeWarping() public method

Constructs a new Dynamic Time Warping kernel.
public DynamicTimeWarping ( int length, double alpha, int degree ) : Accord.Math
length int /// The length of the feature vectors /// contained in each sequence. ///
alpha double /// The hypersphere ratio. Default value is 1. ///
degree int /// The degree of the kernel. Default value is 1 (linear kernel). ///
return Accord.Math

Function() public method

Dynamic Time Warping 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