|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.trajectory.dtw.DTWAlignment
public class DTWAlignment
Envelope for the DTW transform.
Field Summary | |
---|---|
(package private) java.text.NumberFormat |
decFormatter
|
(package private) java.text.NumberFormat |
pathFormatter
|
(package private) java.text.NumberFormat |
warpFormatter
|
Constructor Summary | |
---|---|
DTWAlignment()
|
Method Summary | |
---|---|
void |
doAlignment()
Performs the actual alignment. |
java.util.List<java.awt.Point> |
getPath()
Get the DTW path. |
double |
getPostDistnace()
Get the post-alignment distance. |
double[] |
getWarpingQuery()
Get the warping query. |
void |
setDistanceMatrix(double[][] distances)
Set the local cost matrix. |
void |
setQuery(double[][] query)
Set the query time-series. |
void |
setStepFunction(java.lang.String stepPattern)
Set the step function. |
void |
setTemplate(double[][] template)
Set the template time-series. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.text.NumberFormat decFormatter
java.text.NumberFormat warpFormatter
java.text.NumberFormat pathFormatter
Constructor Detail |
---|
public DTWAlignment()
Method Detail |
---|
public void setQuery(double[][] query) throws DTWException
query
- The query time series.
DTWException
- if error occures.public void setTemplate(double[][] template) throws DTWException
template
- The template time series.
DTWException
- if error occures.public void setStepFunction(java.lang.String stepPattern) throws DTWException
stepPattern
- the selected step function.
DTWException
- if unable to select a function (invalid name provided).public void setDistanceMatrix(double[][] distances) throws DTWException
distances
- The local cost-matrix.
DTWException
- if error occures.public void doAlignment()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.awt.Point> getPath()
public double[] getWarpingQuery()
public double getPostDistnace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |