|
| LM_COMPONENT_IMPL_DEF ("default") |
|
virtual Sampler * | Clone () const override |
|
virtual void | SetSeed (unsigned int seed) override |
|
virtual Math::Float | Next () override |
|
virtual unsigned int | NextUInt () override |
|
virtual Math::Vec2 | NextVec2 () override |
|
virtual Random * | Rng () override |
|
virtual void | Configure (Random *rng, const Math::Float &s1, const Math::Float &s2) override |
|
virtual void | Accept () override |
|
virtual void | Reject () override |
|
virtual void | EnableLargeStepMutation (bool enable) override |
|
virtual bool | LargeStepMutation () const override |
|
virtual void | BeginRestore (RewindableSampler &rewindableSampler) override |
|
virtual void | EndRestore () override |
|
virtual void | GetCurrentSampleState (std::vector< Math::Float > &samples) const override |
|
virtual void | GetCurrentSampleState (std::vector< Math::Float > &samples, int numSamples) override |
|
| LM_COMPONENT_INTERFACE_DEF ("pssmltprimarysampler") |
|
LM_PUBLIC_API void | SetSeedWithCurrentTime () |
|
virtual std::string | ComponentInterfaceTypeName () const =0 |
|
virtual std::string | ComponentImplTypeName () const =0 |
|
void * | operator new (std::size_t size) throw (std::bad_alloc) |
|
void | operator delete (void *p) |
|
virtual void PSSMLTPrimarySamplerImpl::Accept |
( |
| ) |
|
|
inlineoverridevirtual |
virtual void PSSMLTPrimarySamplerImpl::BeginRestore |
( |
RewindableSampler & |
rewindableSampler | ) |
|
|
inlineoverridevirtual |
Begin to restore samples. Begins to set internal sample state using the restored sequence of samples with rewindable sampler. Path sampling process dispatched between BeginRestore and EndRestore is recorded in a form of primary samples.
- Parameters
-
rewindableSampler | Rewindable sampler. |
- See also
- EndRestore
Implements PSSMLTPrimarySampler.
virtual Sampler* PSSMLTPrimarySamplerImpl::Clone |
( |
| ) |
const |
|
inlineoverridevirtual |
Clone the sampler.
- Returns
- Duplicated sampler.
Implements Sampler.
virtual void PSSMLTPrimarySamplerImpl::Configure |
( |
Random * |
rng, |
|
|
const Math::Float & |
s1, |
|
|
const Math::Float & |
s2 |
|
) |
| |
|
inlineoverridevirtual |
Configure the sampler. Configure and initializes the sampler. This function must be called before use.
- Parameters
-
rng | Random number generator. |
s1 | Lower bound of the kernel. |
s2 | Upper bound of the kernel. |
Implements PSSMLTPrimarySampler.
virtual void PSSMLTPrimarySamplerImpl::EnableLargeStepMutation |
( |
bool |
enable | ) |
|
|
inlineoverridevirtual |
Enable large step mutation. Enables to use large step mutation in the next mutation step.
- Parameters
-
Implements PSSMLTPrimarySampler.
virtual void PSSMLTPrimarySamplerImpl::EndRestore |
( |
| ) |
|
|
inlineoverridevirtual |
virtual bool PSSMLTPrimarySamplerImpl::LargeStepMutation |
( |
| ) |
const |
|
inlineoverridevirtual |
Check if current mutation is large step mutation.
- Return values
-
true | Current mutation is large step mutation. |
false | Current mutation is small step mutation. |
Implements PSSMLTPrimarySampler.
virtual Math::Float PSSMLTPrimarySamplerImpl::Next |
( |
| ) |
|
|
inlineoverridevirtual |
Sample a floating-point value.
- Returns
- Sampled value.
Implements Sampler.
virtual unsigned int PSSMLTPrimarySamplerImpl::NextUInt |
( |
| ) |
|
|
inlineoverridevirtual |
Sample a unsigned integer value.
- Returns
- Sampled value.
Implements Sampler.
virtual Math::Vec2 PSSMLTPrimarySamplerImpl::NextVec2 |
( |
| ) |
|
|
inlineoverridevirtual |
Sample a floating-point 2d vector value.
- Returns
- Sampled value.
Implements Sampler.
virtual void PSSMLTPrimarySamplerImpl::Reject |
( |
| ) |
|
|
inlineoverridevirtual |
Reject mutation. Indicates to reject mutated samples. The internal state is restored to previous state.
Implements PSSMLTPrimarySampler.
virtual Random* PSSMLTPrimarySamplerImpl::Rng |
( |
| ) |
|
|
inlineoverridevirtual |
Ger underlying random number generator if available.
- Returns
- Random number generator.
Implements Sampler.
virtual void PSSMLTPrimarySamplerImpl::SetSeed |
( |
unsigned int |
seed | ) |
|
|
inlineoverridevirtual |
Set seed and initialize internal state. This function is valid only for
- Parameters
-
Implements Sampler.
The documentation for this class was generated from the following file:
- /home/travis/build/hi2p-perim/lightmetrica/src/liblightmetrica/pssmlt.sampler.cpp