Skip to main content

orthogonal_procrustes

Function orthogonal_procrustes 

Source
pub fn orthogonal_procrustes(
    a: &[Vec<f64>],
    b: &[Vec<f64>],
) -> Result<(Vec<Vec<f64>>, f64), ErrorsJSL>
Expand description

The orthogonal matrix R minimising ‖A R − B‖_F and the scale Σ σᵢ (SciPy’s orthogonal_procrustes): with AᵀB = U S Vᵀ, R = U Vᵀ. A and B are m × d (rows are points); reflections are allowed.