ContUniformSampler Class Reference
Represents a continuous uniform distribution X ~ U(min, max) f(x) = 1 / (max - min). More...
#include <ContUniformSampler.h>
Inheritance diagram for ContUniformSampler:

Public Member Functions | |
Constructors | |
| ContUniformSampler (real_t min=0, real_t max=1) | |
| ContUniformSampler (const ContUniformSampler ©) | |
| virtual | ~ContUniformSampler () |
Main usage interface | |
| virtual Event | sample () |
| virtual real_t | getPdf (const Event &event) PURE_FUNCTION |
Protected Attributes | |
| Random::BoostContUniformSampler | m_sampler |
Detailed Description
Represents a continuous uniform distribution X ~ U(min, max) f(x) = 1 / (max - min).
- Date:
- Fall 2008
Definition at line 18 of file ContUniformSampler.h.
Constructor & Destructor Documentation
Definition at line 24 of file ContUniformSampler.h.
| ContUniformSampler::ContUniformSampler | ( | const ContUniformSampler & | copy | ) | [inline] |
Definition at line 30 of file ContUniformSampler.h.
| virtual ContUniformSampler::~ContUniformSampler | ( | ) | [inline, virtual] |
Definition at line 35 of file ContUniformSampler.h.
Member Function Documentation
| Event ContUniformSampler::sample | ( | ) | [virtual] |
- Returns:
- a randomly chosen event x, sampled from this random variable's sample space
- Note:
- consecutive calls to sample are expected to return independent, identically distributed (IID) samples
Implements Sampler.
Definition at line 15 of file ContUniformSampler.cpp.
- Returns:
- the probability density with which the given event would be sampled according to the underlying probability density function
- Note:
- the given event is assumed to lie within this random variable's sample space
Implements Sampler.
Definition at line 19 of file ContUniformSampler.cpp.
Member Data Documentation
Definition at line 63 of file ContUniformSampler.h.
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6