pub fn angle_encode(data: &Array1<f64>, scale: f64) -> Result<Array1<f64>>
Angle encoding: encode data as rotation angles