Show / Hide Table of Contents

Class DtwDistance

Calculates the distance between two vector sequences using Dynamic Time Warping

Inheritance
System.Object
DtwDistance
Implements
IDistance<System.Double[][]>
Namespace: SigStat.Common.Algorithms.Distances
Assembly: SigStat.Common.dll
Syntax
public class DtwDistance : object, IDistance<double[][]>
Remarks

Based on: Abdullah Mueen, Eamonn J. Keogh: Extracting Optimal Performance from Dynamic Time Warping.KDD 2016: 2129-2130

Constructors

| Improve this Doc View Source

DtwDistance(IDistance<Double[]>)

Initializes a new instance of the DtwDistance class with default settings

Declaration
public DtwDistance(IDistance<double[]> localDistance = null)
Parameters
Type Name Description
IDistance<System.Double[]> localDistance

The distance function used to calculate the distance between two individual points of the squences. Set the parameter to 'null' to use the default EuclideanDistance

Properties

| Improve this Doc View Source

LocalDistance

The local distance function to use, when calculating the distance between two sueqence-points. Default is EuclideanDistance

Declaration
public IDistance<double[]> LocalDistance { get; set; }
Property Value
Type Description
IDistance<System.Double[]>

Methods

| Improve this Doc View Source

Calculate(Double[][], Double[][])

Calculates the distance between the two parameters

Declaration
public double Calculate(double[][] p1, double[][] p2)
Parameters
Type Name Description
System.Double[][] p1
System.Double[][] p2
Returns
Type Description
System.Double

Implements

IDistance<P>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX