org.jscience.media.pictures.filters.math
Class FBM

java.lang.Object
  extended by org.jscience.media.pictures.filters.math.FBM
All Implemented Interfaces:
Function2D

public class FBM
extends java.lang.Object
implements Function2D

DOCUMENT ME!


Field Summary
protected  Function2D basis
          DOCUMENT ME!
protected  float[] exponents
          DOCUMENT ME!
protected  float H
          DOCUMENT ME!
protected  float lacunarity
          DOCUMENT ME!
protected  float octaves
          DOCUMENT ME!
 
Constructor Summary
FBM(float H, float lacunarity, float octaves)
          Creates a new FBM object.
FBM(float H, float lacunarity, float octaves, Function2D basis)
          Creates a new FBM object.
 
Method Summary
 float evaluate(float x, float y)
          DOCUMENT ME!
 Function2D getBasisType()
          DOCUMENT ME!
 void setBasis(Function2D basis)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exponents

protected float[] exponents
DOCUMENT ME!


H

protected float H
DOCUMENT ME!


lacunarity

protected float lacunarity
DOCUMENT ME!


octaves

protected float octaves
DOCUMENT ME!


basis

protected Function2D basis
DOCUMENT ME!

Constructor Detail

FBM

public FBM(float H,
           float lacunarity,
           float octaves)
Creates a new FBM object.

Parameters:
H - DOCUMENT ME!
lacunarity - DOCUMENT ME!
octaves - DOCUMENT ME!

FBM

public FBM(float H,
           float lacunarity,
           float octaves,
           Function2D basis)
Creates a new FBM object.

Parameters:
H - DOCUMENT ME!
lacunarity - DOCUMENT ME!
octaves - DOCUMENT ME!
basis - DOCUMENT ME!
Method Detail

setBasis

public void setBasis(Function2D basis)
DOCUMENT ME!

Parameters:
basis - DOCUMENT ME!

getBasisType

public Function2D getBasisType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

evaluate

public float evaluate(float x,
                      float y)
DOCUMENT ME!

Specified by:
evaluate in interface Function2D
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
Returns:
DOCUMENT ME!