ludus::foundation::math::ReservoirCandidate¶
Ludus Wiki · API overview · Browse API
Struct
One streamed candidate: its resampling weight and its own uniform ticket.
Named fields keep the weight and ticket from being exchanged.
Declared in modules/foundation/math/include/ludus/foundation/math/weighted_reservoir.hpp
#include <ludus/foundation/math/weighted_reservoir.hpp>
struct ludus::foundation::math::ReservoirCandidate
Fields¶
Weight¶
float32 ludus::foundation::math::ReservoirCandidate::Weight = 0.0f
Resampling weight, for RIS target / source density; finite and nonnegative.
Weights below WEIGHTED_RESERVOIR_MINIMUM_WEIGHT count as zero.
Related types: float32
Declared in modules/foundation/math/include/ludus/foundation/math/weighted_reservoir.hpp
Ticket¶
float32 ludus::foundation::math::ReservoirCandidate::Ticket = 0.0f
Uniform ticket in [0,1), normally SampleFloat01 at a dimension reserved for this candidate alone.
Related types: float32
Declared in modules/foundation/math/include/ludus/foundation/math/weighted_reservoir.hpp