Public Member Functions | |
FastFractal (String unitFunctionName, int fractalDepth, int density, long index, int dimensions) throws Exception | |
double | evaluate (double[] point) |
double[] | evaluate (double[][] points) |
This is the top level class (called by the user) for generating fast multidimensional fractal functions.
Each function (or "landscape") is made from a base function (or unit function) at various scales. For the fast multidimensional functions these are subclasses of UnitFunction1D.
The choice of base function determines a class of fractal functions. Each instance within that class is then determined by three parameters: the fractal depth, the density, and a sequence number.
For the motivation behind the fractal functions see: MacNish, C., Towards Unbiased Benchmarking of Evolutionary and Hybrid Algorithms for Real-valued Optimisation, Connection Science, Vol. 19, No. 4, December 2007. Or visit Cara MacNish's website.
Definition at line 32 of file FastFractal.java.
FastFractal::FastFractal | ( | String | unitFunctionName, | |
int | fractalDepth, | |||
int | density, | |||
long | index, | |||
int | dimensions | |||
) | throws Exception [inline] |
Create a fast fractal function generator.
unitFunctionName | the name of the base function for the generator. It must match the class name of a subclass of UnitFunction1D. | |
fractalDepth | recursive depth of fractal - each increment adds detail at half the scale (double the resolution). Must be between 1 and 48 (the maximum supported by IEEE 64-bit floating point resolution). | |
density | average number of base functions per unit area at each resolution | |
index | the sequence number of this surface (for the given fractal depth and density) | |
dimensions | number of dimensions (free variables) of the parameter space |
Definition at line 49 of file FastFractal.java.
double [] FastFractal::evaluate | ( | double | points[][] | ) | [inline] |
Evaluate the function on an array of points.
points | the points to evaluate. The array must be size nxD where n is the number of points to evaluate and D is the dimension. |
Definition at line 84 of file FastFractal.java.
double FastFractal::evaluate | ( | double[] | point | ) | [inline] |
Evaluate the function at the given point.
point | the point to evaluate. The size of the array must match the dimension of the problem. point[0] is co-ordinate x1, point[1] is co-ordinate x2, ..., point [D-1] is co-ordinate xD, where D is the dimension. |
Definition at line 62 of file FastFractal.java.