| input : c1, …, cN ∈ P(n) |
| w1, …, wN weights |
| output: μ ∈ P(n), the weighted mean |
| μ0 ← I ; |
| i ← 0 ; |
| while ‖ Xi ‖ > e do |
| Xi ← −∇μi ρ; |
| μi+1 ← Expμi (Xi) ; |
| end |
| input : c1, …, cN ∈ P(n) |
| w1, …, wN weights |
| output: μ ∈ P(n), the weighted mean |
| μ0 ← I ; |
| i ← 0 ; |
| while ‖ Xi ‖ > e do |
| Xi ← −∇μi ρ; |
| μi+1 ← Expμi (Xi) ; |
| end |