org.hackystat.projectbrowser.page.trajectory.dtw.constraint
Class AbstractConstraintFunction

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

public abstract class AbstractConstraintFunction
extends java.lang.Object

Defines the constraint function.

Author:
Pavel Senin.

Constructor Summary
AbstractConstraintFunction()
           
 
Method Summary
abstract  java.awt.geom.Point2D doStep(java.awt.geom.Point2D position, double[][] costMatrix, AbstractConstraintFunction constraints)
          Performs the next step given the cost matrix, current position and step function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConstraintFunction

public AbstractConstraintFunction()
Method Detail

doStep

public abstract java.awt.geom.Point2D doStep(java.awt.geom.Point2D position,
                                             double[][] costMatrix,
                                             AbstractConstraintFunction constraints)
Performs the next step given the cost matrix, current position and step function.

Parameters:
position - the current position.
costMatrix - the cost matrix.
constraints - the constraints set.
Returns:
the next step position.