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)).
 
 UniformUnitSphereSurfaceDistribution ()
 Ctor.
 

Protected Attributes

std::normal_distribution< RealType > normDist
 The internally used normal distribution.
 

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 118 of file Samplers.h.

Constructor & Destructor Documentation

◆ UniformUnitSphereSurfaceDistribution()

template<class RealType>
UniformUnitSphereSurfaceDistribution ( )
inline

Ctor.

Definition at line 124 of file Samplers.h.

Member Function Documentation

◆ operator()()

template<class RealType>
template<class Iterator, class Generator>
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 136 of file Samplers.h.

Member Data Documentation

◆ normDist

template<class RealType>
std::normal_distribution<RealType> normDist
protected

The internally used normal distribution.

Definition at line 158 of file Samplers.h.


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