Go to the documentation of this file.
25 : model_(
model), generator_(seed) {
27 throw std::invalid_argument(
"Sampler::Sampler needs a non-null model.");
33 : model_(noiseModel::
Diagonal::Sigmas(
sigmas, true)), generator_(seed) {}
39 for (
size_t i = 0;
i <
d;
i++) {
46 std::normal_distribution<double> dist(0.0,
sigma);
static const double d[K][N]
const noiseModel::Diagonal::shared_ptr & model() const
Sampler(const noiseModel::Diagonal::shared_ptr &model, uint_fast64_t seed=42u)
noiseModel::Diagonal::shared_ptr model_
std::mt19937_64 generator_
static Vector sampleDiagonal(const Vector &sigmas, std::mt19937_64 *rng)
sample with given random number generator
static const double sigma
noiseModel::Diagonal::shared_ptr model
Vector sample() const
sample from distribution
std::shared_ptr< Diagonal > shared_ptr
static noiseModel::Diagonal::shared_ptr Diagonal(const Matrix &covariance)
sampling from a NoiseModel
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:01