JSci.maths.chaos
Class GingerbreadManMap

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

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

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.
 
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 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