A weighted integer value. Used with WeightedIntGenerator.
More...
#include <RandGenerator.h>
|
int | _val |
| The value of the entry.
|
|
float | _wt |
| The weight of the value.
|
|
A weighted integer value. Used with WeightedIntGenerator.
Menge::Math::WeightedInt::WeightedInt |
( |
int |
value, |
|
|
float |
weight |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
value | The integer value. |
weight | The relative weight associated with the value. |
Friend function for writing string representation to an output stream.
- Parameters
-
out | The output stream. |
wInt | An instance of the weighted int to represent as a string. |
- Returns
- Reference to the input output stream.
The documentation for this class was generated from the following file: