HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SobolSequence< itype > Class Template Reference

#include <UT_SobolSequence.h>

Public Member Functions

 UT_SobolSequence (uint dim, uint bits=sizeof(itype)*8)
 
virtual ~UT_SobolSequence ()
 
uint dimension () const
 
uint bits () const
 
void advance ()
 
itype x (uint dim)
 Return the sequence value for dimension dim. More...
 
fpreal32 xf (uint dim)
 
void rewind (itype n=0)
 Reset the sequence. More...
 

Detailed Description

template<class itype>
class UT_SobolSequence< itype >

Definition at line 23 of file UT_SobolSequence.h.

Constructor & Destructor Documentation

template<class itype>
UT_SobolSequence< itype >::UT_SobolSequence ( uint  dim,
uint  bits = sizeof(itype)*8 
)

Initialize a new sequence with the given number of dimensions and bits.

dim = vector size for each sample (max 6) bits = number of bits in each random value (max 32)

template<class itype>
virtual UT_SobolSequence< itype >::~UT_SobolSequence ( )
virtual

Member Function Documentation

template<class itype>
void UT_SobolSequence< itype >::advance ( )

Advance to the next sample, storing the result into x. When myN exceeds the range of the sequence, it will automatically wrap.

template<class itype>
uint UT_SobolSequence< itype >::bits ( ) const
inline

Definition at line 35 of file UT_SobolSequence.h.

template<class itype>
uint UT_SobolSequence< itype >::dimension ( ) const
inline

Definition at line 34 of file UT_SobolSequence.h.

template<class itype>
void UT_SobolSequence< itype >::rewind ( itype  n = 0)

Reset the sequence.

template<class itype>
itype UT_SobolSequence< itype >::x ( uint  dim)
inline

Return the sequence value for dimension dim.

Definition at line 42 of file UT_SobolSequence.h.

template<class itype>
fpreal32 UT_SobolSequence< itype >::xf ( uint  dim)
inline

Definition at line 44 of file UT_SobolSequence.h.


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