Public Member Functions | |
FractalFunction1D (UnitFunction1D unitFunction, int fractalDepth, int density, long index) | |
FractalFunction1D (UnitFunction1D unitFunction, int density, long index) | |
FractalFunction1D (UnitFunction1D unitFunction, long index) | |
FractalFunction1D (UnitFunction1D unitFunction) | |
FractalFunction1D () | |
void | setIndex (long index) |
double | evaluate (double x) |
This class is called by FastFractal to evaluate the components for each dimension to evaluate fast very high-dimensional fractal functions (landscapes).
It can also be used directly to generate 1-dimensional fractal landscapes.
Definition at line 21 of file FractalFunction1D.java.
FractalFunction1D::FractalFunction1D | ( | UnitFunction1D | unitFunction, | |
int | fractalDepth, | |||
int | density, | |||
long | index | |||
) | [inline] |
Create a new 1D fast fractal function generator.
unitFunction | the base function for this generator | |
fractalDepth | recursive depth of fractal - each increment adds detail at half the scale (double the resolution). Must be between 1 and 2^64 although in practice maximum supported by IEEE 64-bit floating point is in the low 40s. Recommend maximum of 40. | |
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) |
Definition at line 47 of file FractalFunction1D.java.
FractalFunction1D::FractalFunction1D | ( | UnitFunction1D | unitFunction, | |
int | density, | |||
long | index | |||
) | [inline] |
Create a new 1D fast fractal function generator using default values (fractal depth = 3).
unitFunction | the base function for this generator | |
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) |
Definition at line 61 of file FractalFunction1D.java.
FractalFunction1D::FractalFunction1D | ( | UnitFunction1D | unitFunction, | |
long | index | |||
) | [inline] |
Create a new 1D fast fractal function generator using default values (fractal depth = 3, density = 1).
unitFunction | the base function for this generator | |
index | the sequence number of this surface (for the given fractal depth and density) |
Definition at line 72 of file FractalFunction1D.java.
FractalFunction1D::FractalFunction1D | ( | UnitFunction1D | unitFunction | ) | [inline] |
Create a new 1D fast fractal function generator using default values (fractal depth = 3, density = 1, index = 1).
unitFunction | the base function for this generator |
Definition at line 82 of file FractalFunction1D.java.
FractalFunction1D::FractalFunction1D | ( | ) | [inline] |
Create a new 1D fast fractal function generator using default values (unitFunction = DoubleDip, fractal depth = 3, density = 1, index = 1).
Definition at line 90 of file FractalFunction1D.java.
double FractalFunction1D::evaluate | ( | double | x | ) | [inline] |
Evaluate the function at the given co-ordinate.
x | the point at which to evaluate |
Definition at line 110 of file FractalFunction1D.java.
void FractalFunction1D::setIndex | ( | long | index | ) | [inline] |
Create a new generator in the same series by resetting the index (faster than creating a new object).
index | the new index (sequence number). |
Definition at line 99 of file FractalFunction1D.java.