pub fn calculate_relative_entropy<F>(ts: &Array1<F>, nbins: usize) -> Result<F>where F: Float + FromPrimitive + Debug + Clone,
Calculate relative entropy (KL divergence from uniform distribution)