|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.distributions.GaussianMixtureDistribution
public class GaussianMixtureDistribution
This class implements a Gaussian mixture distribution.
Constructor Summary | |
---|---|
GaussianMixtureDistribution(double[] means,
double[] variances,
double[] proportions)
Creates a new pseudo-random, Gaussian mixture distribution. |
|
GaussianMixtureDistribution(int nbGaussians)
Creates a new pseudo-random, Gaussian mixture distribution. |
Method Summary | |
---|---|
GaussianDistribution[] |
distributions()
Returns the distributions composing this mixture. |
double |
generate()
Generates a pseudo-random number. |
int |
nbGaussians()
Returns the number of Gaussians composing this mixture. |
double |
probability(double n)
Returns the probability (density) of a given number. |
double[] |
proportions()
Returns the proportions of the distributions in this mixture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GaussianMixtureDistribution(int nbGaussians)
nbGaussians
- The number of distributions composing the mixture.public GaussianMixtureDistribution(double[] means, double[] variances, double[] proportions)
means
- The mean values of the Gaussian distributions.variances
- The variances of the Gaussian distributions.proportions
- The mixing proportions. This array does not have to
be normalized, but each element must be positive and the sum
of its elements must be strictly positive.Method Detail |
---|
public int nbGaussians()
public GaussianDistribution[] distributions()
public double[] proportions()
public double generate()
RandomDistribution
generate
in interface RandomDistribution
public double probability(double n)
RandomDistribution
probability
in interface RandomDistribution
n
- A number.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |