org.jscience.measure.random
Class RandomMap

java.lang.Object
  extended by org.jscience.measure.random.RandomMap
All Implemented Interfaces:
AbstractMapping, ComplexMapping, NumberMapping, PrimitiveMapping

public final class RandomMap
extends java.lang.Object
implements PrimitiveMapping, ComplexMapping

This class defines a random map.


Field Summary
static RandomMap MAP
          A random map that generates numbers between 0.0 and 1.0.
 
Constructor Summary
RandomMap()
          Constructs a random map with the range [0.0,1.0].
RandomMap(double minimum, double maximum)
          Constructs a random map with a specified range.
 
Method Summary
 Complex map(Complex z)
          DOCUMENT ME!
 double map(double x)
          DOCUMENT ME!
 Complex map(double real, double imag)
          DOCUMENT ME!
 double map(float x)
          DOCUMENT ME!
 double map(int x)
          DOCUMENT ME!
 double map(long x)
          DOCUMENT ME!
 java.lang.Number map(java.lang.Number x)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP

public static final RandomMap MAP
A random map that generates numbers between 0.0 and 1.0.

Constructor Detail

RandomMap

public RandomMap()
Constructs a random map with the range [0.0,1.0].


RandomMap

public RandomMap(double minimum,
                 double maximum)
Constructs a random map with a specified range.

Parameters:
minimum - smallest random number to generate
maximum - largest random number to generate
Method Detail

map

public double map(int x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public double map(long x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public double map(float x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!

map

public double map(double x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.IntervalList.

map

public java.lang.Number map(java.lang.Number x)
DOCUMENT ME!

Specified by:
map in interface NumberMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

map

public Complex map(Complex z)
DOCUMENT ME!

Specified by:
map in interface ComplexMapping
Parameters:
z - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

map

public Complex map(double real,
                   double imag)
DOCUMENT ME!

Parameters:
real - DOCUMENT ME!
imag - DOCUMENT ME!
Returns:
DOCUMENT ME!