[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] ParetoI and ParetoII Random Variables



Hi,

I'm puzzled about Pareto random variable generation. The following calls are
use for this purpose in the current implementation:

* Pareto I: (ranvar.cc)
    return(rng_->pareto(avg_ * (shape_ -1)/shape_, shape_));

* Pareto II: (ranvar.cc)
    return(rng_->paretoII(avg_ * (shape_ - 1), shape_));

The random variable generators in rng.cc use the common definition of ParetoI
and ParetoII. Why are the mean and the shape corrected in the previous
fashion?

-- Felix Hernandez