Skip to main content

phase_distance

Function phase_distance 

Source
pub fn phase_distance(gamma: &[f64], argvals: &[f64]) -> f64
Expand description

Geodesic distance from a warping function to the identity on the Hilbert sphere.

Computes arccos(⟨ψ/‖ψ‖, 1/‖1‖⟩_L2) where ψ = √γ'.

§Arguments

  • gamma — Warping function values (length m)
  • argvals — Evaluation points (length m)

§Returns

Geodesic distance (≥ 0). Returns 0 for the identity warp.