Compute points of the Halton sequence with with digitpermutations for different bases.
More...
#include <OpenGl_HaltonSampler.hxx>

void  initFaure () 
 Init the permutation arrays using Faurepermutations. Alternatively, initRandom() can be called before the sampling functionality can be used. More...


template<typename Random_number_generator > 
void  initRandom (Random_number_generator &theRand) 
 Init the permutation arrays using randomized permutations. Alternatively, initFaure() can be called before the sampling functionality can be used. The client needs to specify a random number generator function object that can be used to generate a random sequence of integers. That is: if f is a random number generator and N is a positive integer, then f(N) will return an integer less than N and greater than or equal to 0. More...


float  sample (unsigned theDimension, unsigned theIndex) const 
 Return the Halton sample for the given dimension (component) and index. The client must have called initRandom or initFaure() at least once before. dimension must be smaller than the value returned by get_num_dimensions(). More...


Compute points of the Halton sequence with with digitpermutations for different bases.
static unsigned OpenGl_HaltonSampler::get_num_dimensions 
( 
 ) 


inlinestatic 
Return the number of supported dimensions.
void OpenGl_HaltonSampler::initFaure 
( 
 ) 


inline 
Init the permutation arrays using Faurepermutations. Alternatively, initRandom() can be called before the sampling functionality can be used.
template<typename Random_number_generator >
void OpenGl_HaltonSampler::initRandom 
( 
Random_number_generator & 
theRand  ) 

Init the permutation arrays using randomized permutations. Alternatively, initFaure() can be called before the sampling functionality can be used. The client needs to specify a random number generator function object that can be used to generate a random sequence of integers. That is: if f is a random number generator and N is a positive integer, then f(N) will return an integer less than N and greater than or equal to 0.
float OpenGl_HaltonSampler::sample 
( 
unsigned 
theDimension, 


unsigned 
theIndex 

) 
 const 

inline 
Return the Halton sample for the given dimension (component) and index. The client must have called initRandom or initFaure() at least once before. dimension must be smaller than the value returned by get_num_dimensions().
The documentation for this class was generated from the following file: