|
Stores a distribution and a generator. More...
#include <RobotComponents/components/MotionPlanning/util/Samplers.h>
Public Types | |
using | DistributionType = Distribution |
Type of the stored distribution. More... | |
using | GeneratorType = Generator |
Type of the stored generator. More... | |
Public Member Functions | |
Distribution & | getDistribution () |
Returns the stored distribution. More... | |
Generator & | getGenerator () |
Returns the stored generator. More... | |
template<class... Args> | |
auto | operator() (Args &&...args) -> decltype(distribution(std::forward< Args >(args)..., generator)) |
Passes all arguments followed by the generator to the distribution. More... | |
Sampler (Distribution &&dist, Generator &&gen) | |
Ctor. More... | |
Protected Attributes | |
Distribution | distribution |
The stored distribution. More... | |
Generator | generator |
The stored generator. More... | |
Stores a distribution and a generator.
The call operator passes the generator to the distribution
Definition at line 47 of file Samplers.h.
using DistributionType = Distribution |
Type of the stored distribution.
Definition at line 53 of file Samplers.h.
using GeneratorType = Generator |
Type of the stored generator.
Definition at line 57 of file Samplers.h.
|
inline |
Ctor.
dist | The distribution to store. |
gen | The generator to store. |
Definition at line 73 of file Samplers.h.
|
inline |
Returns the stored distribution.
Definition at line 95 of file Samplers.h.
|
inline |
Returns the stored generator.
Definition at line 104 of file Samplers.h.
|
inline |
Passes all arguments followed by the generator to the distribution.
args | Additional parameters to pass to the distribution. |
Definition at line 85 of file Samplers.h.
|
protected |
The stored distribution.
Definition at line 62 of file Samplers.h.
|
protected |
The stored generator.
Definition at line 66 of file Samplers.h.