|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.trajectory.dtw.EuclideanDistance
public class EuclideanDistance
The Euclidean distance implementation.
Constructor Summary | |
---|---|
EuclideanDistance()
|
Method Summary | |
---|---|
static double |
getSeriesDistnace(double[][] query,
double[][] template)
Calculates euclidean distance between two time-series of equal length. |
static double |
pointDistance(double[] point1,
double[] point2)
Calculates the Euclidean distance between two points. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EuclideanDistance()
Method Detail |
---|
public static double pointDistance(double[] point1, double[] point2) throws DTWException
point1
- The first point.point2
- The second point.
DTWException
- In the case of error.public static double getSeriesDistnace(double[][] query, double[][] template) throws DTWException
query
- The timeseries1.template
- The timeseries2.
DTWException
- if error occures.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |