org.jscience.mathematics.analysis.chaos
Class GingerbreadManMap

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

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

The GingerbreadManMap class provides an object that encapsulates the gingerbread man map. xn+1 = 1 - yn + |xn| yn+1 = xn (Devaney).


Field Summary
static double[] X_CHAOS
          Chaotic x value.
 
Constructor Summary
GingerbreadManMap()
          Constructs a gingerbread man 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
 

Field Detail

X_CHAOS

public static final double[] X_CHAOS
Chaotic x value.

Constructor Detail

GingerbreadManMap

public GingerbreadManMap()
Constructs a gingerbread man 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