Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NRooks Class Reference

NRooks stratified Sampler. More...

Inheritance diagram for NRooks:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void createSamples (Vector2 *samples, int num_samples, MTRand *rand, bool shuffle) const
void createSamples (float *samples, int num_samples, MTRand *rand, bool shuffle) const

Detailed Description

NRooks stratified Sampler.


Member Function Documentation

void NRooks::createSamples Vector2 samples,
int  num_samples,
MTRand rand,
bool  shuffle
const [virtual]
 

Create a set of 2D samples with known size. Some samplers may require that num_samples be a perfect square.

Parameters:
[out] samples Preallocated sample array of length num_samples.
[in] num_samples Number of samples to create.
[in] rand Thread specific random number generator.
[in] shuffle True if you want the samples shuffled.
Returns:
The samples array will be filled with num_samples.

Implements Sampler.

void NRooks::createSamples float *  samples,
int  num_samples,
MTRand rand,
bool  shuffle
const [virtual]
 

Create a set of 1D samples with known size. Some samplers may requires that num_samples be a perfect square.

Parameters:
[out] samples Preallocated sample array of length num_samples.
[in] num_samples Number of samples to create.
[in] rand Thread specific random number generator.
[in] shuffle True if you want the samples shuffled.
Returns:
The samples array will be filled with num_samples.

Implements Sampler.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:25 2005 for galileo by  doxygen 1.4.3