Jittered Class Reference
A Jittered stratified sampler.
More...
#include <samplers/Jittered.h>
Inheritance diagram for Jittered:
[legend]List of all members.
Detailed Description
A Jittered stratified sampler.
The Jittered sampler requires that num_samples be a perfect square.
Member Function Documentation
| void Jittered::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 Jittered::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:23 2005 for galileo by
1.4.3