Bug 817 - Pareto rng constructors using scale and shape instead of mean and shape
Pareto rng constructors using scale and shape instead of mean and shape
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P5 enhancement
Assigned To: ns-bugs
http://codereview.appspot.com/207098/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-15 13:00 EST by Tommaso Pecorella
Modified: 2010-03-01 20:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2010-02-15 13:00:38 EST
pareto rng constructors only allows the use of mean and shape, preventing to have a pareto with undefined mean (useful in some cases).

I added such constructors and added a warning in the documentation that making a pareto with a defined mean and shape <= 1 is definitely a bad idea. If an user doesn't read the manual and doesn't know what a pareto distribution is, he deserve a core dump.