JSci.maths.chaos
Class CatMap

java.lang.Object
  extended by JSci.maths.chaos.CatMap
All Implemented Interfaces:
MappingND

public final class CatMap
extends java.lang.Object
implements MappingND

The CatMap class provides an object that encapsulates the cat map. xn+1 = (xn + yn) mod 1 yn+1 = (xn + 2yn) mod 1 (Arnol'd).


Constructor Summary
CatMap()
          Constructs a cat map.
 
Method Summary
 double[] iterate(int n, double[] x)
          Iterates the map.
 double[] map(double[] x)
          Performs the mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatMap

public CatMap()
Constructs a cat map.

Method Detail

map

public double[] map(double[] x)
Performs the mapping.

Specified by:
map in interface MappingND
Parameters:
x - a 2-D double array
Returns:
a 2-D double array

iterate

public double[] iterate(int n,
                        double[] x)
Iterates the map.

Parameters:
n - the number of iterations
x - the initial values (2-D)
Returns:
a 2-D double array