|
Uniform distribution over the surface of an n dimensional unit sphere. More...
#include <RobotComponents/components/MotionPlanning/util/Samplers.h>
Public Member Functions | |
template<class Iterator , class Generator > | |
void | operator() (const Iterator &first, const Iterator &last, Generator &gen) |
Fills [first, last) with a uniform sample of n dimensional unit sphere's surface (n = distance(first, last)). More... | |
UniformUnitSphereSurfaceDistribution () | |
Ctor. More... | |
Protected Attributes | |
std::normal_distribution< RealType > | normDist |
The internally used normal distribution. More... | |
Uniform distribution over the surface of an n dimensional unit sphere.
(using the method described in doi>10.1145/377939.377946 (https://dl.acm.org/citation.cfm?doid=377939.377946))
Definition at line 116 of file Samplers.h.
|
inline |
Ctor.
Definition at line 122 of file Samplers.h.
|
inline |
Fills [first, last) with a uniform sample of n dimensional unit sphere's surface (n = distance(first, last)).
first | The first value to fill. |
last | One past the last value to fill. |
gen | The generator to use. |
Definition at line 134 of file Samplers.h.
|
protected |
The internally used normal distribution.
Definition at line 155 of file Samplers.h.