28 return GaussianDensity(key, mean / sigma, Matrix::Identity(mean.size(), mean.size()) / sigma);
34 cout << s <<
": density on ";
35 for(
const_iterator it = beginFrontals(); it != endFrontals(); ++it)
36 cout << (boost::format(
"[%1%]")%(
formatter(*it))).str() <<
" ";
41 model_->print(
"Noise model: ");
47 return soln[firstFrontalKey()];
51 Matrix GaussianDensity::covariance()
const {
52 return information().inverse();
void print(const Matrix &A, const string &s, ostream &stream)
static const double sigma
Rot2 R(Rot2::fromAngle(0.1))
Point3 mean(const CONTAINER &points)
mean
const KeyFormatter & formatter
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
KeyVector::const_iterator const_iterator
Const iterator over keys.
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
std::uint64_t Key
Integer nonlinear key type.