This repo is an implementation of the algorithm from our paper Consensus on Lie groups for the Riemannian Center of Mass. This algorithm computes the Riemannian center of mass of a set of points in a distributed manner, generalizing the Euclidean average consensus dynamics.
Just run main.m
.
ConsensusError.m
is a function that computes the geodesic variance, aka consensus error, of a set of points under a graph on a manifold. RiemannianCenterOfMass.m
computes the Riemannian center of mass of a set of points on a manifold. SSDFromPoint.m
computes the sum of squared geodesic distances over a set of points from a target point. Lastly, main.m
is the file that contains the algorithm. Run it, and it will plot the RCM error and consensus error over time. The number of agents is set to 10, the tolernace is set to
These files require the matlab Manopt library to run. Follow the installation instructions, but the basic instructions are
- Download the MATLAB Manopt library
- Move the Manopt directory to your MATLAB directory
- In the MATLAB console, cd into the Manopt directory
- Type
importmanopt
in the MATLAB console
For any issues, please post an issue here, or contact me at kraisler(at)uw(dot)edu! I am always happy to help and explain anything!