uk.ac.ed.inf.utils.stats
Class PseudoTruncatedPareto
java.lang.Object
cern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractContinousDistribution
cern.jet.random.Pareto
uk.ac.ed.inf.utils.stats.TruncatedPareto
uk.ac.ed.inf.utils.stats.PseudoTruncatedPareto
- All Implemented Interfaces:
- DoubleFunction, IntFunction, java.io.Serializable, java.lang.Cloneable
public class PseudoTruncatedPareto
- extends TruncatedPareto
A truncated pareto distribution which stores a big lists of power-law
extracted random numbers. Used to work around the performance problems of the
Pareto distribution.
- Version:
- 4 Aug 2008
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
- See Also:
- Serialized Form
|
Constructor Summary |
PseudoTruncatedPareto(double scale,
double shape,
int offset,
int truncationThreshold,
int lengthOfPseudoRandomList)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PseudoTruncatedPareto
public PseudoTruncatedPareto(double scale,
double shape,
int offset,
int truncationThreshold,
int lengthOfPseudoRandomList)
- Parameters:
scale - the power law distribution scaleshape - the power law distribution shapeoffset - an offset (all extracted numbers will start from the offset)truncationThreshold - a truncation threshold (no extracted number will be above the
threshold)lengthOfPseudoRandomList - the length of the list of power-law distributed random numbers
to be stored
getPseudoRandomNumbers
public java.lang.Integer[] getPseudoRandomNumbers()
nextPseudoInt
public int nextPseudoInt()