librtl

rtl_normaldist Class Reference

Normal distribution of random variate. More...

#include <distributions.h>

List of all members.

Public Members

Protected Members


Detailed Description

Normal distribution of random variate.

Produce a sequence of normally distributed random variables according to a given standard deviation and a given mean. This class is included for improving stochastic sampling for light transfer.


Member Function Documentation

rtl_normaldist::rtl_normaldist( jFlt=0, jFlt=1 )

Creates a normal distribution with a given mean and standard deviation parameters.

jFlt rtl_normaldist::x()

Returns an independent random variable when taken in sequence with this function is in the normal distribution with mean and standard deviation that was/ defined on construction.


Member Data Documentation

jFlt rtl_normaldist::mean [protected]

The mean and standard deviation that the normal distribution will obey.

jFlt rtl_normaldist::stddev [protected]


The documentation for this class was generated from the following file:
JSP / librtl v0.2 mtigges@cpsc.ucalgary.ca