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

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
MultiGaussianDistribution

public interface MultiRandomDistribution
extends java.io.Serializable

This interface must be implemented by all the package's classes implementing a multi-variate random distribution.


Method Summary
 int dimension()
          Returns the dimension of the vectors handled by this random distribution.
 double[] generate()
          Generates a pseudo-random vector.
 double probability(double[] v)
          Returns the probability (density) of a given vector.
 

Method Detail

dimension

int dimension()
Returns the dimension of the vectors handled by this random distribution.

Returns:
The generated vectors' dimension.

generate

double[] generate()
Generates a pseudo-random vector. The vectors generated by this function must follow the pseudo-random distribution described by the object that implements it.

Returns:
A pseudo-random vector.

probability

double probability(double[] v)
Returns the probability (density) of a given vector.

Parameters:
v - A vector.
Returns:
The probability of the vector v.


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