Open CASCADE Technology  7.2.0
Public Member Functions | Static Public Member Functions

OpenGl_HaltonSampler Class Reference

Compute points of the Halton sequence with with digit-permutations for different bases. More...

#include <OpenGl_HaltonSampler.hxx>

Public Member Functions

void initFaure ()
 Init the permutation arrays using Faure-permutations. 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...
 

Static Public Member Functions

static unsigned get_num_dimensions ()
 Return the number of supported dimensions. More...
 

Detailed Description

Compute points of the Halton sequence with with digit-permutations for different bases.

Member Function Documentation

◆ get_num_dimensions()

static unsigned OpenGl_HaltonSampler::get_num_dimensions ( )
inlinestatic

Return the number of supported dimensions.

◆ initFaure()

void OpenGl_HaltonSampler::initFaure ( )
inline

Init the permutation arrays using Faure-permutations. Alternatively, initRandom() can be called before the sampling functionality can be used.

◆ initRandom()

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.

◆ sample()

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: