|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.statistics.Distribution
An abstract class modelling probabilistic distributions.
This class has to be subclassed for specific distributions.
| Constructor Summary | |
Distribution()
|
|
| Method Summary | |
double[] |
computeValues(int num)
Returns an array with actual values based on the underlying distribution in decreasing order (as many values as possible). |
abstract void |
computeValues(int num,
double[] ret)
Computes actual values based on the underlying distribution when having the specified number of items, and writes them in decreasing order into the specified array (as many values as possible). |
void |
eliminateZero()
Eliminates info about the distribution at zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Distribution()
| Method Detail |
public void eliminateZero()
At the moment, this method does nothing. It may to be overridden in subclasses.
public double[] computeValues(int num)
num - number of items in total
public abstract void computeValues(int num,
double[] ret)
This method has to be overridden in subclasses.
num - number of items in totalret - array for the actual values
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||