25 : model_(model), generator_(seed) {}
33 size_t d = sigmas.size();
35 for (
size_t i = 0;
i <
d;
i++) {
42 typedef std::normal_distribution<double> Normal;
43 Normal dist(0.0, sigma);
std::mt19937_64 generator_
noiseModel::Diagonal::shared_ptr model_
noiseModel::Diagonal::shared_ptr model
static const double sigma
sampling from a NoiseModel
boost::shared_ptr< Diagonal > shared_ptr
static noiseModel::Diagonal::shared_ptr Diagonal(const Matrix &covariance)
Vector sampleDiagonal(const Vector &sigmas) const
Sampler(const noiseModel::Diagonal::shared_ptr &model, uint_fast64_t seed=42u)
Vector sample() const
sample from distribution