#include <DistributionTable.h>
List of all members.
Constructor & Destructor Documentation
| DistributionTable::DistributionTable |
( |
| ) |
|
| DistributionTable::~DistributionTable |
( |
void |
| ) |
|
| DistributionTable::DistributionTable |
( |
const double |
Pdf[], |
|
|
const int |
NumElements, |
|
|
const double |
MinX = 0, |
|
|
const double |
MaxX = 1 |
|
) |
| |
Constructor that takes the probability denisity function as parameter.
Takes the pdf defined in the range [MinX, MaxX] as parameter.
- Parameters:
-
| Pdf | The probability density function. |
| NumElements | Number of elements in pdf[] |
| MinX | Lower bound. |
| MaxX | Upper bound. |
Member Function Documentation
| double DistributionTable::GenerateRandomNumber |
( |
void |
| ) |
const [virtual] |
Generates a number according to the distribution.
- Returns:
- double Random number generated.
Reimplemented from Distributions::Distribution.
The documentation for this class was generated from the following files: