34 T FindKarcherMean(
const std::vector<T, Eigen::aligned_allocator<T>> &rotations);
36 template <
class T> T FindKarcherMean(std::initializer_list<T> &&rotations);
54 std::shared_ptr<JacobianFactor> whitenedJacobian_;
62 template <
typename CONTAINER>
64 std::optional<double> beta = {});
73 size_t dim()
const override {
return d_; }
77 return whitenedJacobian_;
Definition: NonlinearFactor.h:68
std::shared_ptr< GaussianFactor > linearize(const Values &c) const override
linearize to a GaussianFactor
Definition: KarcherMeanFactor.h:76
KarcherMeanFactor(const CONTAINER &keys, int d=D, std::optional< double > beta={})
Definition: KarcherMeanFactor-inl.h:61
size_t dim() const override
get the dimension of the factor (number of rows on linearization)
Definition: KarcherMeanFactor.h:73
~KarcherMeanFactor() override
Destructor.
Definition: KarcherMeanFactor.h:67
Definition: KarcherMeanFactor.h:46
typedef and functions to augment Eigen's MatrixXd
Definition: chartTesting.h:28
const KeyVector & keys() const
Access the factor's involved variable keys.
Definition: Factor.h:142
double error(const Values &c) const override
Calculate the error of the factor: always zero.
Definition: KarcherMeanFactor.h:70