Class DtwClassifier
Classifies Signatures with the DTW algorithm.
Inheritance
System.Object
DtwClassifier
Assembly: SigStat.Common.dll
Syntax
public class DtwClassifier : PipelineBase, ILoggerObject, IProgress, IPipelineIO, IDistanceClassifier, IClassifier
Constructors
|
Improve this Doc
View Source
DtwClassifier()
Initializes a new instance of the DtwClassifier class with the default Manhattan distance method.
Declaration
|
Improve this Doc
View Source
DtwClassifier(Func<Double[], Double[], Double>)
Initializes a new instance of the DtwClassifier class with a specified distance method.
Declaration
public DtwClassifier(Func<double[], double[], double> distanceMethod)
Parameters
Type |
Name |
Description |
Func<System.Double[], System.Double[], System.Double> |
distanceMethod |
Accord.Math.Distance.*
|
Properties
|
Improve this Doc
View Source
DistanceFunction
The function used to calculate the distance between two data points during DTW calculation
Declaration
public Func<double[], double[], double> DistanceFunction { get; set; }
Property Value
Type |
Description |
Func<System.Double[], System.Double[], System.Double> |
|
|
Improve this Doc
View Source
Features
Gets or sets the features to consider during distance calculation
Declaration
public List<FeatureDescriptor> Features { get; set; }
Property Value
|
Improve this Doc
View Source
MultiplicationFactor
Gets or sets the multiplication factor to be used during threshold calculation
Declaration
public double MultiplicationFactor { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Test(ISignerModel, Signature)
Declaration
public double Test(ISignerModel model, Signature signature)
Parameters
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Train(List<Signature>)
Declaration
public ISignerModel Train(List<Signature> signatures)
Parameters
Type |
Name |
Description |
List<Signature> |
signatures |
|
Returns
Implements