Function darkfi::validator::utils::median

source ·
pub fn median(v: Vec<u64>) -> u64
Expand description

Auxiliary function to calculate the median of a given Vec<u64>. The function sorts the vector internally.