Interface Distribution
-
- All Known Implementing Classes:
Distribution.AbstractDistribution
public interface Distribution
Normal distribution and uniform distribution distribution functions.- Author:
- $Id$
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDistribution.AbstractDistribution
-
Field Summary
Fields Modifier and Type Field Description static DistributionINVERTED_NORMALAn inverted bell curve.static DistributionNEGATIV_NORMALLeft side of the bell curve.static DistributionPOSITIV_NORMALRight side of the bell curve.static DistributionUNIFORMA uniform distribution function.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublenextRandomNumber()Generate the next random number for this distribution function.
-
-
-
Field Detail
-
POSITIV_NORMAL
static final Distribution POSITIV_NORMAL
Right side of the bell curve. Values range from 0.0 to 1.0. Values near 0.0 are the most probable.
-
NEGATIV_NORMAL
static final Distribution NEGATIV_NORMAL
Left side of the bell curve. Values range from 0.0 to 1.0. Values near 1.0 are the most probable.
-
INVERTED_NORMAL
static final Distribution INVERTED_NORMAL
An inverted bell curve. Values range from 0.0 to 1.0. Values near 0.0 and 1.0 are the most probable.
-
UNIFORM
static final Distribution UNIFORM
A uniform distribution function. Values range from 0.0 to 1.0.
-
-
Method Detail
-
nextRandomNumber
double nextRandomNumber()
Generate the next random number for this distribution function.- Returns:
- double 0 <= x <= 1.0
-
-