|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.trajectory.dtw.step.AbstractStepFunction
org.hackystat.projectbrowser.page.trajectory.dtw.step.AsymmetricStepFunction
public class AsymmetricStepFunction
Implements symmetric cost function.
Field Summary | |
---|---|
static java.lang.String |
STEP_PATTERN_P0
Step pattern p0 according to Sakoe-Chiba. |
static java.lang.String |
STEP_PATTERN_P05
Step pattern p05 according to Sakoe-Chiba. |
static java.lang.String |
STEP_PATTERN_P1
Step pattern p1 according to Sakoe-Chiba. |
static java.lang.String |
STEP_PATTERN_P2
Step pattern p2 according to Sakoe-Chiba. |
Constructor Summary | |
---|---|
AsymmetricStepFunction(java.lang.String stepPattern)
Constructor. |
Method Summary | |
---|---|
java.awt.Point |
doStep(java.awt.Point position,
double[][] distanceMatrix,
AbstractConstraintFunction constraints)
Calculates the next step given the cost matrix and constraints. |
double[][] |
getCostMatrix(double[][] distanceMatrix)
Get the local cost matrix using the step function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STEP_PATTERN_P0
public static final java.lang.String STEP_PATTERN_P05
public static final java.lang.String STEP_PATTERN_P1
public static final java.lang.String STEP_PATTERN_P2
Constructor Detail |
---|
public AsymmetricStepFunction(java.lang.String stepPattern)
stepPattern
- specifies the step pattern.Method Detail |
---|
public java.awt.Point doStep(java.awt.Point position, double[][] distanceMatrix, AbstractConstraintFunction constraints)
doStep
in class AbstractStepFunction
position
- the current position.distanceMatrix
- the distance matrix.constraints
- the constraints function.
public double[][] getCostMatrix(double[][] distanceMatrix)
getCostMatrix
in class AbstractStepFunction
distanceMatrix
- The distance matrix to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |