UniformUnitSphereSurfaceDistribution< RealType > Class Template Reference

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...
 

Detailed Description

template<class RealType>
class armarx::UniformUnitSphereSurfaceDistribution< RealType >

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.

Constructor & Destructor Documentation

◆ UniformUnitSphereSurfaceDistribution()

Ctor.

Definition at line 122 of file Samplers.h.

Member Function Documentation

◆ operator()()

void operator() ( const Iterator &  first,
const Iterator &  last,
Generator &  gen 
)
inline

Fills [first, last) with a uniform sample of n dimensional unit sphere's surface (n = distance(first, last)).

Parameters
firstThe first value to fill.
lastOne past the last value to fill.
genThe generator to use.

Definition at line 134 of file Samplers.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ normDist

std::normal_distribution<RealType> normDist
protected

The internally used normal distribution.

Definition at line 155 of file Samplers.h.


The documentation for this class was generated from the following file: