5#include <Common/assertion.h>
6#include <Common/primitive_type.h>
28 static PDF W(real pdfW);
33 static PDF A(real pdfA);
38 static PDF D(real pdfD);
60 operator bool ()
const;
116inline PDF::operator bool ()
const
118 return !isEmpty() && std::isfinite(value) && value > 0;
A sample from a Probability Density Function (PDF).
Definition PDF.h:14
PDF operator-(real rhs) const
Definition PDF.h:127
PDF operator/(real rhs) const
Definition PDF.h:139
static PDF A(real pdfA)
Definition PDF.h:77
real getPdfD() const
Definition PDF.h:99
static PDF D(real pdfD)
Definition PDF.h:82
real operator*() const
Definition PDF.h:110
real getPdfW() const
Definition PDF.h:87
static PDF W(real pdfW)
Definition PDF.h:72
real value
Definition PDF.h:18
EDomain domain
Definition PDF.h:23
PDF operator+(real rhs) const
Perform arithmetic on value without changing its domain.
Definition PDF.h:121
bool isEmpty() const
Definition PDF.h:105
real getPdfA() const
Definition PDF.h:93
Light transport algorithms.
Definition enums.h:6
EDomain
Type of the set of all possible inputs for a mathematical function.
Definition enums.h:19