sampling.cpp File Reference

#include "pbrt.h"
#include "sampling.h"
#include "transport.h"
#include "volume.h"

Go to the source code of this file.

Functions

COREDLL void StratifiedSample1D (float *samp, int nSamples, bool jitter)
COREDLL void StratifiedSample2D (float *samp, int nx, int ny, bool jitter)
COREDLL void Shuffle (float *samp, int count, int dims)
COREDLL void LatinHypercube (float *samples, int nSamples, int nDim)


Function Documentation

COREDLL void LatinHypercube ( float *  samples,
int  nSamples,
int  nDim 
)

Definition at line 98 of file sampling.cpp.

References RandomFloat(), and RandomUInt().

Referenced by StratifiedSampler::GetNextSample(), SingleScattering::Li(), and BxDF::rho().

COREDLL void Shuffle ( float *  samp,
int  count,
int  dims 
)

COREDLL void StratifiedSample1D ( float *  samp,
int  nSamples,
bool  jitter 
)

COREDLL void StratifiedSample2D ( float *  samp,
int  nx,
int  ny,
bool  jitter 
)


Generated on Mon Jul 20 17:31:54 2009 for pbrt by  doxygen 1.5.6