ContinuousDistribution

public interface ContinuousDistribution

Interface to be implemented by a pseudo random number generator (PRNG) that follows a defined statistical continuous distribution.

Author:Marcos Dias de Assuncao

Fields

NULL

ContinuousDistribution NULL

An attribute that implements the Null Object Design Pattern for ContinuousDistribution objects.

Methods

getSeed

long getSeed()
Returns:the seed used to initialize the generator

sample

double sample()

Generate a new pseudo random number.

Returns:the next pseudo random number in the sequence, following the implemented distribution.