be.ac.ulg.montefiore.run.distributions
Interface RandomDistribution

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ExponentialDistribution, GaussianDistribution, GaussianMixtureDistribution

public interface RandomDistribution
extends java.io.Serializable

This interface must be implemented by all the package's classes implementing a mono-variate random distribution. Distributions are not mutable.


Method Summary
 double generate()
          Generates a pseudo-random number.
 double probability(double n)
          Returns the probability (density) of a given number.
 

Method Detail

generate

double generate()
Generates a pseudo-random number. The numbers generated by this function are drawn according to the pseudo-random distribution described by the object that implements it.

Returns:
A pseudo-random number.

probability

double probability(double n)
Returns the probability (density) of a given number.

Parameters:
n - A number.


Copyright © 2004,2005 Jean-Marc François.