Closed timothy-glover closed 1 year ago
Patch coverage: 97.12
% and project coverage change: +0.02
:tada:
Comparison is base (
78c88a4
) 94.90% compared to head (61bed83
) 94.92%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Introduced the sampler module for producing samples from distributions.
ParticleSampler
is the main class contributed for this and it accepts a callable sampling function such asnumpy.random.multivariate_normal
orscipy.stats.uniform.rvs
, and a dictionary of parameters to be used as kwargs for the callable and returns aParticleState
containing the samples.GaussianDetectionParticleSampler
is a child class ofParticleSampler
that specifically samples fromDetection
or sets ofDetection
.DetectionSampler
is a generalDetection
sampler that is able to switch between a detection based sampler object such asGaussianDetectionParticleSampler
and a non-detection backup sampler such asParticleSampler
that is used if no detections are available.No single callable has been found for sampling from Gaussian mixture distributions which lead to the introduction of
gm_sample
method instonesoup.functions
. This method can be used as a callable forParticleSampler
and is the sampler used byGaussianDetectionParticleSampler
.