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

OpenGl_HaltonSampler Class Reference

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

#include <OpenGl_HaltonSampler.hxx>

Public Member Functions

 OpenGl_HaltonSampler ()
 Init the permutation arrays using Faure-permutations. More...
 
float sample (unsigned theDimension, unsigned theIndex) const
 Return the Halton sample for the given dimension (component) and index. The client must have called 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 digit-permutations for different bases.

Constructor & Destructor Documentation

◆ OpenGl_HaltonSampler()

OpenGl_HaltonSampler::OpenGl_HaltonSampler ( )
inline

Init the permutation arrays using Faure-permutations.

Member Function Documentation

◆ get_num_dimensions()

static unsigned OpenGl_HaltonSampler::get_num_dimensions ( )
inlinestatic

Return the number of supported dimensions.

◆ 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 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: