renamed uncorrelation

This commit is contained in:
randogoth 2025-01-17 18:49:52 +02:00
parent f3766124ad
commit dcc612fc98

View file

@ -6,7 +6,7 @@ impl Onod {
/// UnCorrelation randomness test
/// Computes the Pearson correlation between the sequence and its shifted version, returning a p-value.
pub fn un_correlation(input: &[u8]) -> (f64, f64, f64) {
pub fn uncorrelation(input: &[u8]) -> (f64, f64, f64) {
let samples = input.iter().map(|&x| x as i32).collect::<Vec<i32>>();