23 #include <boost/random.hpp> 37 noiseModel::Diagonal::shared_ptr
model_;
43 typedef boost::shared_ptr<Sampler> shared_ptr;
51 Sampler(
const noiseModel::Diagonal::shared_ptr& model, int32_t seed = 42u);
58 Sampler(
const Vector& sigmas, int32_t seed = 42u);
68 size_t dim()
const { assert(model_.get());
return model_->dim(); }
69 Vector sigmas()
const { assert(model_.get());
return model_->sigmas(); }
70 const noiseModel::Diagonal::shared_ptr& model()
const {
return model_; }
84 Vector sampleNewModel(
const noiseModel::Diagonal::shared_ptr& model);
89 Vector sampleDiagonal(
const Vector& sigmas);
boost::mt19937_64 generator_
generator
Definition: Sampler.h:40
Sampling structure that keeps internal random number generators for diagonal distributions specified ...
Definition: Sampler.h:34
noiseModel::Diagonal::shared_ptr model_
noiseModel created at generation
Definition: Sampler.h:37
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
size_t dim() const
access functions
Definition: Sampler.h:68