31 return GaussianDensity(key, mean, Matrix::Identity(mean.size(), mean.size()),
38 cout << s <<
": density on ";
void print(const Matrix &A, const string &s, ostream &stream)
const gtsam::Symbol key('X', 0)
JacobianFactor ::const_iterator endFrontals() const
void print(const std::string &="GaussianDensity", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
noiseModel::Diagonal::shared_ptr model_
VectorValues solve(const VectorValues &parents) const
Matrix information() const override
Point3 mean(const CONTAINER &points)
mean
const KeyFormatter & formatter
JacobianFactor ::const_iterator beginFrontals() const
GaussianDensity()
default constructor needed for serialization
static GaussianDensity FromMeanAndStddev(Key key, const Vector &mean, double sigma)
Construct using a mean and standard deviation.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Vector mean() const
Mean .
static const double sigma
Key firstFrontalKey() const
KeyVector::const_iterator const_iterator
Const iterator over keys.
std::uint64_t Key
Integer nonlinear key type.
static shared_ptr Sigma(size_t dim, double sigma, bool smart=true)
Matrix covariance() const
Covariance matrix .