org.hackystat.projectbrowser.page.trajectory.dtw
Class DTWFactory

java.lang.Object
  extended by org.hackystat.projectbrowser.page.trajectory.dtw.DTWFactory

public class DTWFactory
extends java.lang.Object

Does DTW alignment.

Author:
Pavel Senin.

Constructor Summary
DTWFactory()
           
 
Method Summary
static DTWAlignment doDTW(double[][] query, double[][] template, java.lang.String stepPattern)
          Performs the alignment of two timeseries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTWFactory

public DTWFactory()
Method Detail

doDTW

public static DTWAlignment doDTW(double[][] query,
                                 double[][] template,
                                 java.lang.String stepPattern)
                          throws DTWException
Performs the alignment of two timeseries.

Parameters:
query - the query series.
template - the template series.
stepPattern - the step pattern to use.
Returns:
the dtw alignment of the series.
Throws:
DTWException - if error occures.