Generic interface to path-space mutators. More...
#include <mitsuba/bidir/mutator.h>
Inheritance diagram for mitsuba::Mutator:Public Types | |
| enum | EMutationType { EBidirectionalMutation = 0, ELensPerturbation, ELensSubpathMutation, EIndependentMutation, ECausticPerturbation, EMultiChainPerturbation, EManifoldPerturbation, EMutationTypeCount } |
| Specifies the type of mutation implemented by the mutator. More... | |
Public Member Functions | |
| virtual EMutationType | getType () const =0 |
| What kind of mutations does this mutator perform? More... | |
| virtual Float | suitability (const Path &path) const =0 |
| Determine the general "suitability" of this mutator for a given kind of path. More... | |
| virtual bool | sampleMutation (Path &source, Path &proposal, MutationRecord &muRec, const MutationRecord &sourceMuRec)=0 |
| Given a path, this function produces a new proposal according to the internally implemented mutation strategy. More... | |
| virtual Float | Q (const Path &source, const Path &proposal, const MutationRecord &muRec) const =0 |
| For a pair of paths, this function computes the inverse transition probability (matching the Q term in [Veach 97]) More... | |
| virtual void | accept (const MutationRecord &muRec)=0 |
| Record an accepted mutation. More... | |
| virtual const Class * | getClass () const |
| Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
| Object () | |
| Construct a new object. More... | |
| int | getRefCount () const |
| Return the current reference count. More... | |
| void | incRef () const |
| Increase the reference count of the object by one. More... | |
| void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More... | |
| virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
| static Class * | m_theClass |
Static Public Attributes inherited from Object | |
| static Class * | m_theClass |
| Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
| virtual | ~Mutator () |
| Virtual destructor. More... | |
Protected Member Functions inherited from Object | |
| virtual | ~Object () |
| Virtual private deconstructor. (Will only be called by ref) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static void | staticInitialization () |
| Initializes the built-in reference count debugger (if enabled) More... | |
| static void | staticShutdown () |
| Free the memory taken by staticInitialization() More... | |
Generic interface to path-space mutators.
This is the superclass of all path-space mutators, such as the bidirectional mutation or lens perturbation in Veach-MLT.
|
inlineprotectedvirtual |
Virtual destructor.
|
pure virtual |
Record an accepted mutation.
This function exists to allow mutators to track their acceptance rate and other statistics.
Implemented in mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
Reimplemented in mitsuba::MutatorBase, mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
|
pure virtual |
What kind of mutations does this mutator perform?
Implemented in mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
|
pure virtual |
For a pair of paths, this function computes the inverse transition probability (matching the Q term in [Veach 97])
| source | A path data structure containing the original path |
| proposal | A path data structure containing the proposed mutated path |
| muRec | Data record that describes the mutation strategy, which transformed source to proposal. |
Implemented in mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
|
pure virtual |
Given a path, this function produces a new proposal according to the internally implemented mutation strategy.
| source | The sampling strategy implemented by the mutator will condition on this path. |
| proposal | Path data structure to be filled with the proposed mutated path |
| muRec | Data record that describes the sampled mutation strategy |
| sourceMuRec | Data record that describes the last successful mutation strategy (for the source path) |
false. Implemented in mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
Determine the general "suitability" of this mutator for a given kind of path.
Implemented in mitsuba::BidirectionalMutator, mitsuba::CausticPerturbation, mitsuba::LensPerturbation, mitsuba::MultiChainPerturbation, and mitsuba::ManifoldPerturbation.
|
static |