|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.tools.random.RndGenBase
bcds.tools.random.RndPareto
public class RndPareto
Generates random values following a Pareto distribution.
| Constructor Summary | |
|---|---|
RndPareto(double a,
double k)
Creates a new instance that uses the default randomness source. |
|
RndPareto(java.util.Random rnd,
double a,
double k)
Creates a new instance that uses rnd as the
randomess source. |
|
| Method Summary | |
|---|---|
double |
next()
Returns a random value. |
| Methods inherited from class bcds.tools.random.RndGenBase |
|---|
getRandomGen, setRandomGen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bcds.tools.random.RndGen |
|---|
getRandomGen, setRandomGen |
| Constructor Detail |
|---|
public RndPareto(double a,
double k)
a is the minimum
value of the random numbers to generate (this value must be
positive) and k is the "shape" of the distribution.
See
http://en.wikipedia.org/wiki/Pareto_distribution and
http://reference.wolfram.com/mathematica/ref/ParetoDistribution.html
public RndPareto(java.util.Random rnd,
double a,
double k)
rnd as the
randomess source. The other two parameters are the same as in
RndPareto(double, double).
| Method Detail |
|---|
public double next()
next in interface RndGen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||