◆ TParticle
◆ rejectionSampling()
Generates a set of N independent samples via rejection sampling.
- Parameters
-
desiredSamples | The number of desired samples to generate |
outSamples | The output samples. |
timeoutTrials | The maximum number of rejection trials for each generated sample (i.e. the maximum number of iterations). This can be used to set a limit to the time complexity of the algorithm for difficult probability densities. All will have equal importance weights (a property of rejection sampling), although those samples generated at timeout will have a different importance weights. |
Definition at line 49 of file CRejectionSamplingCapable.h.
◆ RS_drawFromProposal() [1/2]
void CMyRejectionSampling::RS_drawFromProposal |
( |
CPose2D & |
outSample | ) |
|
|
inlineprotected |
◆ RS_drawFromProposal() [2/2]
|
protectedpure virtualinherited |
Generates one sample, drawing from some proposal distribution.
◆ RS_observationLikelihood() [1/2]
double CMyRejectionSampling::RS_observationLikelihood |
( |
const CPose2D & |
x | ) |
|
|
inlineprotected |
Returns the NORMALIZED observation likelihood at a given point of the state space (values in the range [0,1]).
Definition at line 42 of file vision_stereo_rectify/test.cpp.
◆ RS_observationLikelihood() [2/2]
|
protectedpure virtualinherited |
Returns the NORMALIZED observation likelihood (linear, not exponential!!!) at a given point of the state space (values in the range [0,1]).