jsci.util
Class RandomMap
- java.lang.Object
-
- jsci.util.RandomMap
-
- All Implemented Interfaces:
- ComplexMapping, Mapping
public final class RandomMap extends java.lang.Object implements Mapping, ComplexMapping
This class defines a random map.
-
-
Field Summary
Fields Modifier and Type Field and Description static RandomMapMAPA random map that generates numbers between 0.0 and 1.0.
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Complexmap(Complex z)A user-defined complex function.doublemap(double x)A user-defined function.Complexmap(double real, double imag)A user-defined complex function.
-
-
-
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 generatemaximum- largest random number to generate
-
-
Method Detail
-
map
public double map(double x)
Description copied from interface:MappingA user-defined function.
-
map
public Complex map(Complex z)
Description copied from interface:ComplexMappingA user-defined complex function.- Specified by:
mapin interfaceComplexMapping
-
map
public Complex map(double real, double imag)
Description copied from interface:ComplexMappingA user-defined complex function. This method is designed to save the construction of a Complex object in cases where one is not given.- Specified by:
mapin interfaceComplexMapping
-
-
DMelt 3.0 © DataMelt by jWork.ORG