net.java.quickcheck.generator.distribution
Interface Distribution

All Known Implementing Classes:
Distribution.AbstractDistribution

public interface Distribution

Normal distribution and uniform distribution distribution functions.

Author:
$Id$

Nested Class Summary
static class Distribution.AbstractDistribution
           
 
Field Summary
static Distribution INVERTED_NORMAL
          An inverted bell curve.
static Distribution NEGATIV_NORMAL
          Left side of the bell curve.
static Distribution POSITIV_NORMAL
          Right side of the bell curve.
static Distribution UNIFORM
          A uniform distribution function.
 
Method Summary
 double nextRandomNumber()
          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


Copyright © 2011. All Rights Reserved.