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

MultiJittered Class Reference

A Jittered N-rooks sampler. More...

Inheritance diagram for MultiJittered:

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

A Jittered N-rooks sampler.


Member Function Documentation

void MultiJittered::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 MultiJittered::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:24 2005 for galileo by  doxygen 1.4.3