UT_SobolSequence< itype > Class Template Reference

#include <UT_SobolSequence.h>

List of all members.

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.
fpreal32 xf (uint dim)
void rewind (itype n=0)
 Reset the sequence.


Detailed Description

template<class itype>
class UT_SobolSequence< itype >

Definition at line 31 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 43 of file UT_SobolSequence.h.

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

Definition at line 42 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 50 of file UT_SobolSequence.h.

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

Definition at line 52 of file UT_SobolSequence.h.


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

Generated on Fri May 25 00:10:54 2012 for HDK by  doxygen 1.5.9