Go to the documentation of this file.
28 : model_(
model), generator_(seed) {
30 throw std::invalid_argument(
"Sampler::Sampler needs a non-null model.");
36 : model_(noiseModel::
Diagonal::Sigmas(
sigmas, true)), generator_(seed) {}
42 for (
size_t i = 0;
i <
d;
i++) {
49 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 Sun Dec 22 2024 04:13:09