org.jscience.mathematics.analysis.chaos
Class CatMap

java.lang.Object
  extended by org.jscience.mathematics.analysis.chaos.CatMap
All Implemented Interfaces:
AbstractMapping, PrimitiveMappingND

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

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.
 double[] map(float[] x)
          DOCUMENT ME!
 double[] map(int[] x)
          DOCUMENT ME!
 double[] map(long[] x)
          DOCUMENT ME!
 int numInputDimensions()
          DOCUMENT ME!
 int numOutputDimensions()
          DOCUMENT ME!
 
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 PrimitiveMappingND
Parameters:
x - a 2-D double array
Returns:
a 2-D double array
See Also:
org.jscience.mathematics.analysis.Domain.

map

public double[] map(float[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public double[] map(long[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public double[] map(int[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

numInputDimensions

public int numInputDimensions()
DOCUMENT ME!

Specified by:
numInputDimensions in interface PrimitiveMappingND
Returns:
DOCUMENT ME!

numOutputDimensions

public int numOutputDimensions()
DOCUMENT ME!

Specified by:
numOutputDimensions in interface PrimitiveMappingND
Returns:
DOCUMENT ME!

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