uk.ac.ed.inf.utils.stats
Class PseudoTruncatedPareto

java.lang.Object
  extended by cern.colt.PersistentObject
      extended by cern.jet.random.AbstractDistribution
          extended by cern.jet.random.AbstractContinousDistribution
              extended by cern.jet.random.Pareto
                  extended by uk.ac.ed.inf.utils.stats.TruncatedPareto
                      extended by 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)
           
 
Method Summary
 java.lang.Integer[] getPseudoRandomNumbers()
           
 int nextPseudoInt()
           
 
Methods inherited from class uk.ac.ed.inf.utils.stats.TruncatedPareto
getOffset, getPareto, getParetoFrequencies, getTruncationThreshold, nextInt
 
Methods inherited from class cern.jet.random.Pareto
cdf, nextDouble, nextDouble, pdf, setState, staticNextDouble, toString
 
Methods inherited from class cern.jet.random.AbstractDistribution
apply, apply, clone, makeDefaultGenerator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PseudoTruncatedPareto

public PseudoTruncatedPareto(double scale,
                             double shape,
                             int offset,
                             int truncationThreshold,
                             int lengthOfPseudoRandomList)
Parameters:
scale - the power law distribution scale
shape - the power law distribution shape
offset - 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
Method Detail

getPseudoRandomNumbers

public java.lang.Integer[] getPseudoRandomNumbers()

nextPseudoInt

public int nextPseudoInt()