State sampler for the Rn state space. More...
#include <RealVectorStateSpace.h>
Public Member Functions | |
RealVectorStateSampler (const StateSpace *space) | |
Constructor. | |
virtual void | sampleUniform (State *state) |
Sample a state. | |
virtual void | sampleUniformNear (State *state, const State *near, const double distance) |
Sample a state such that each component state[i] is uniformly sampled from [near[i]-distance, near[i]+distance]. If this interval exceeds the state space bounds, the interval is truncated. | |
virtual void | sampleGaussian (State *state, const State *mean, const double stdDev) |
Sample a state such that each component state[i] has a Gaussian distribution with mean mean[i] and standard deviation stdDev. If the sampled value exceeds the state space boundary, it is thresholded to the nearest boundary. | |
![]() | |
StateSampler (const StateSpace *space) | |
Constructor. | |
Additional Inherited Members | |
![]() | |
const StateSpace * | space_ |
The state space this sampler samples. | |
RNG | rng_ |
An instance of a random number generator. | |
State sampler for the Rn state space.
Definition at line 52 of file RealVectorStateSpace.h.