#include <ranvar.h>
Inheritance diagram for ParetoIIRandomVariable:


Public Member Functions | |
| virtual double | value () |
| ParetoIIRandomVariable () | |
| ParetoIIRandomVariable (double, double) | |
| double * | avgp () |
| double * | shapep () |
| virtual double | avg () |
| double | shape () |
| void | setavg (double d) |
| void | setshape (double d) |
| int | command (int argc, const char *const *argv) |
| int | seed (char *) |
Protected Attributes | |
| RNG * | rng_ |
Private Attributes | |
| double | avg_ |
| double | shape_ |
| double | scale_ |
|
|
Definition at line 165 of file ranvar.cc.
00166 {
00167 bind("avg_", &avg_);
00168 bind("shape_", &shape_);
00169 }
|
|
||||||||||||
|
Definition at line 171 of file ranvar.cc.
|
|
|
Implements RandomVariable. Definition at line 97 of file ranvar.h. References avg_.
00097 { return avg_; };
|
|
|
Definition at line 95 of file ranvar.h. References avg_.
00095 { return &avg_; };
|
|
||||||||||||
|
Reimplemented in EmpiricalRandomVariable. Definition at line 32 of file ranvar.cc. References RandomVariable::rng_, and RandomVariable::value(). Referenced by EmpiricalRandomVariable::command().
00033 {
00034 Tcl& tcl = Tcl::instance();
00035
00036 if (argc == 2) {
00037 if (strcmp(argv[1], "value") == 0) {
00038 tcl.resultf("%6e", value());
00039 return(TCL_OK);
00040 }
00041 }
00042 if (argc == 3) {
00043 if (strcmp(argv[1], "use-rng") == 0) {
00044 rng_ = (RNG*)TclObject::lookup(argv[2]);
00045 if (rng_ == 0) {
00046 tcl.resultf("no such RNG %s", argv[2]);
00047 return(TCL_ERROR);
00048 }
00049 return(TCL_OK);
00050 }
00051 }
00052 return(TclObject::command(argc, argv));
00053 }
|
Here is the call graph for this function:

|
|
Definition at line 60 of file ranvar.cc. References RandomVariable::rng_. Referenced by EXPOO_Traffic::command().
|
|
|
Definition at line 99 of file ranvar.h. References avg_.
00099 { avg_ = d; };
|
|
|
Definition at line 100 of file ranvar.h. References shape_.
00100 { shape_ = d; };
|
|
|
Definition at line 98 of file ranvar.h. References shape_.
00098 { return shape_; };
|
|
|
Definition at line 96 of file ranvar.h. References shape_.
00096 { return &shape_; };
|
|
|
Implements RandomVariable. Definition at line 177 of file ranvar.cc. References avg_, RNG::paretoII(), RandomVariable::rng_, and shape_.
|
Here is the call graph for this function:

|
|
Definition at line 102 of file ranvar.h. Referenced by avg(), avgp(), ParetoIIRandomVariable(), setavg(), and value(). |
|
|
|
|
|
|
Definition at line 103 of file ranvar.h. Referenced by ParetoIIRandomVariable(), setshape(), shape(), shapep(), and value(). |
1.3.3