Class Map2DFunction
java.lang.Object
|
+----Map2DFunction
- public class Map2DFunction
- extends Object
Class to return nf'th iterate of map function.
To be subclassed by specific functions, which must provide:
- a method iterate(double[] x) to return the new values of {x,y}.
- an int variable nParameters giving the number of map parameters (1 or 2)
- the initialization of a[nParamters] and aDefault[nParameters]
Optional parameters are:
- double xminDefault, xmaxDefault, yminDefault, ymaxDefault giving the
default plot range
- String title giving the name of the function to use as a graph title
- boolean showWinding set to true if winding number to be displayed
.
-
a
- array giving map paramters
-
aDefault
- array giving default values of map parameters
-
nParameters
- number of map parameters (1,2 or 3)
-
showWinding
- true if winding number to be shown
-
title
- the name of the function to use as a graph title
-
total
- number of iterations contributing to winding
-
winding
- winding number for circle map
-
windingAdd
- set to zero in transients so winding number not updated
-
xmaxDefault
- the default value of xmax
-
xminDefault
- the default value of xmin
-
ymaxDefault
- the default value of ymax
-
yminDefault
- the default value of ymin
-
Map2DFunction()
-
-
getNParameters()
- Returns the number of parameters defining the map
-
iterate(double[])
- iterates the map function
-
iterateTangent(double[], double[])
- iterates the tangent space of the map function
-
mod(double)
- Shifts x to 0
setParameters(double[])
- Sets the map paramters
nParameters
public int nParameters
- number of map parameters (1,2 or 3)
a
double a[]
- array giving map paramters
aDefault
public double aDefault[]
- array giving default values of map parameters
title
public String title
- the name of the function to use as a graph title
xminDefault
public double xminDefault
- the default value of xmin
xmaxDefault
public double xmaxDefault
- the default value of xmax
yminDefault
public double yminDefault
- the default value of ymin
ymaxDefault
public double ymaxDefault
- the default value of ymax
winding
public int winding
- winding number for circle map
windingAdd
public int windingAdd
- set to zero in transients so winding number not updated
total
public int total
- number of iterations contributing to winding
showWinding
public boolean showWinding
- true if winding number to be shown
Map2DFunction
public Map2DFunction()
setParameters
public void setParameters(double parameters[])
- Sets the map paramters
- Parameters:
- paramters - the array of input paramters
iterateTangent
public void iterateTangent(double x[],
double t[])
- iterates the tangent space of the map function
- Parameters:
- x - input value and returns updated values
x[0] and x[1] contain the new values of X and Y
- t - value of tangent vector (updated by iteration)
iterate
public void iterate(double x[])
- iterates the map function
- Parameters:
- x - input value of map point
x[0] and x[1] contain the new values of X and Y
x[2] and x[3] contain the previous values
getNParameters
public int getNParameters()
- Returns the number of parameters defining the map
- Returns:
- number of parameters
mod
double mod(double x)
- Shifts x to 0
- Parameters:
- x - input value
- Returns:
- value shifted to between 0 and 1