25package umontreal.ssj.probdistmulti;
40 protected int dimension;
49 public abstract double prob(
int[] x);
58 public double cdf(
int x[]) {
59 int is[] =
new int[x.length];
60 for (
int i = 0; i < is.length; i++)
73 while (j < x.length && is[j] == x[j])
Classes implementing multi-dimensional discrete distributions over the integers should inherit from t...
abstract double[] getMean()
Returns the mean vector of the distribution, defined as .
abstract double[][] getCorrelation()
Returns the correlation matrix of the distribution, defined as.
int getDimension()
Returns the dimension of the distribution.
double cdf(int x[])
Computes the cumulative probability function of the distribution evaluated at x, assuming the lowest...
abstract double[][] getCovariance()
Returns the variance-covariance matrix of the distribution, defined as .
abstract double prob(int[] x)
Returns the probability mass function , which should be a real number in .