pub fn discriminator(x: &[f64], y: &[f64]) -> (f64, f64)