DRCL J-Sim API

drcl.util.random
Class TruncatedParetoDistribution

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.util.random.RandomNumberGenerator
          extended bydrcl.util.random.TruncatedParetoDistribution
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class TruncatedParetoDistribution
extends RandomNumberGenerator

This class implements a pareto distribution. Parameters: scale, shape

See Also:
Serialized Form

Constructor Summary
TruncatedParetoDistribution()
           
TruncatedParetoDistribution(double scale_, double upper_bound_, double shape_)
           
TruncatedParetoDistribution(double scale_, double upper_bound_, double shape_, long seed_)
           
TruncatedParetoDistribution(long seed_)
           
 
Method Summary
 double getMean()
           
 java.lang.String getName()
           
 double getScale()
           
 double getShape()
           
 double getUpperBound()
           
 java.lang.String info(java.lang.String prefix_)
           
 double nextDouble()
           
 int nextInt()
           
 long nextLong()
           
 java.lang.String oneline()
           
 void setScale(double scale_)
           
 void setShape(double shape_)
           
 void setUpperBound(double upper_bound_)
           
 
Methods inherited from class drcl.util.random.RandomNumberGenerator
duplicate, getSeed, getStd, info, reset, setSeed, toString
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TruncatedParetoDistribution

public TruncatedParetoDistribution(double scale_,
                                   double upper_bound_,
                                   double shape_)

TruncatedParetoDistribution

public TruncatedParetoDistribution(double scale_,
                                   double upper_bound_,
                                   double shape_,
                                   long seed_)

TruncatedParetoDistribution

public TruncatedParetoDistribution()

TruncatedParetoDistribution

public TruncatedParetoDistribution(long seed_)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class RandomNumberGenerator

getMean

public double getMean()
Overrides:
getMean in class RandomNumberGenerator

nextDouble

public double nextDouble()
Specified by:
nextDouble in class RandomNumberGenerator

nextInt

public int nextInt()
Specified by:
nextInt in class RandomNumberGenerator

nextLong

public long nextLong()
Specified by:
nextLong in class RandomNumberGenerator

setScale

public void setScale(double scale_)

getScale

public double getScale()

setShape

public void setShape(double shape_)

getShape

public double getShape()

setUpperBound

public void setUpperBound(double upper_bound_)

getUpperBound

public double getUpperBound()

info

public java.lang.String info(java.lang.String prefix_)
Overrides:
info in class RandomNumberGenerator

oneline

public java.lang.String oneline()
Overrides:
oneline in class RandomNumberGenerator

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~