edu.stanford.rsl.konrad.geometry.motion.timewarp
Class PeriodicTimeWarper

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.motion.timewarp.TimeWarper
      extended by edu.stanford.rsl.konrad.geometry.motion.timewarp.PeriodicTimeWarper

public class PeriodicTimeWarper
extends TimeWarper

Implements a regular periodic time warping. Internally the time is mapped to 0.5 - 0.5* cos(time**2Math.PI). At time = 0.5 the maximal motion is achieved. At time = 1 the motion is returned to the original position.

Sine Function

Author:
akmaier

Constructor Summary
PeriodicTimeWarper()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 double warpTime(double time)
          Applies the time warping to the given input time
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicTimeWarper

public PeriodicTimeWarper()
Method Detail

warpTime

public double warpTime(double time)
Description copied from class: TimeWarper
Applies the time warping to the given input time

Specified by:
warpTime in class TimeWarper
Parameters:
time - the input time
Returns:
the output time

main

public static void main(java.lang.String[] args)