pub fn calculate_weighted_permutation_entropy<F>( ts: &Array1<F>, order: usize, ) -> Result<F>where F: Float + FromPrimitive + Debug + Clone,
Calculate weighted permutation entropy