61 template <
typename CONTAINER>
63 boost::optional<double> beta = boost::none);
72 size_t dim()
const override {
return d_; }
boost::shared_ptr< JacobianFactor > whitenedJacobian_
Constant Jacobian made of d*d identity matrices.
T FindKarcherMean(const std::vector< T > &rotations)
STL compatible allocator to use with types requiring a non standrad alignment.
size_t dim() const override
get the dimension of the factor (number of rows on linearization)
~KarcherMeanFactor() override
Destructor.
const KeyVector & keys() const
Access the factor's involved variable keys.
boost::shared_ptr< GaussianFactor > linearize(const Values &c) const override
linearize to a GaussianFactor
KarcherMeanFactor(const CONTAINER &keys, int d=D, boost::optional< double > beta=boost::none)
double error(const Values &c) const override
Calculate the error of the factor: always zero.