random_var Class Reference
#include <random-var.h>
List of all members.
Constructor & Destructor Documentation
| random_var::random_var |
( |
int |
c |
) |
|
| random_var::random_var |
( |
int |
s, |
|
|
int |
e, |
|
|
weight_func |
w_ = NULL | |
|
) |
| | |
| random_var::random_var |
( |
int |
s, |
|
|
int |
e, |
|
|
std::vector< int > |
ws | |
|
) |
| | |
Member Function Documentation
| int random_var::weight |
( |
int |
val |
) |
const |
| int random_var::roll |
( |
|
) |
const |
| random_var::operator int |
( |
|
) |
const [inline] |
| double random_var::expected |
( |
|
) |
const |
| int random_var::min |
( |
|
) |
const |
| int random_var::max |
( |
|
) |
const |
| void random_var::init_weights |
( |
weight_func |
w |
) |
[protected] |
| void random_var::init |
( |
|
) |
[protected] |
| int random_var::roll2val |
( |
int |
r |
) |
const [protected] |
The documentation for this class was generated from the following files: