ContinuousDistributionAbstract

public abstract class ContinuousDistributionAbstract implements ContinuousDistribution

An base class for implementation of ContinuousDistributions.

Author:Manoel Campos da Silva Filho

Constructors

ContinuousDistributionAbstract

protected ContinuousDistributionAbstract(RealDistribution numGen)

Creates a new continuous random number generator using the current time as seed.

Parameters:
  • numGen – the actual random number generator that will be the base to generate random numbers following a continuous distribution.

ContinuousDistributionAbstract

protected ContinuousDistributionAbstract(RealDistribution numGen, long seed)

Creates a new continuous random number generator.

Parameters:
  • numGen – the actual random number generator that will be the base to generate random numbers following a continuous distribution.
  • seed – the seed to initialize the random number generator. If it is passed -1, the current time will be used

Methods

getSeed

public final long getSeed()

sample

public double sample()

setSeed

protected final void setSeed(long seed)