FractalFunction1D Class Reference

Collaboration diagram for FractalFunction1D:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

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.

Author:
ahref="http://www.csse.uwa.edu.au/~cara/">CaraMacNish</a>,UniversityofWesternAustralia@version1.0RC1,7thNov2007<br>Forthelatestversionandadditionalinformationseethe@link<ahref="http://www.cs.bham.ac.uk/research/projects/ecb/">BirminghamRepository</a>

Definition at line 21 of file FractalFunction1D.java.


Constructor & Destructor Documentation

FractalFunction1D::FractalFunction1D ( UnitFunction1D  unitFunction,
int  fractalDepth,
int  density,
long  index 
) [inline]

Create a new 1D fast fractal function generator.

Parameters:
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).

Parameters:
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).

Parameters:
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).

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


Member Function Documentation

double FractalFunction1D::evaluate ( double  x  )  [inline]

Evaluate the function at the given co-ordinate.

Parameters:
x the point at which to evaluate
Returns:
the value at that point

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

Parameters:
index the new index (sequence number).

Definition at line 99 of file FractalFunction1D.java.

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1