pub fn from(v: &[u32]) -> Vec<Bin> {
        v.iter()
            .map(|x| Bin {
                count: *x,
                label: 0,
            })
            .collect()
    }
/// Helper function to create a vector of bins from a slice of counts.
Helper function to create a vector of bins from a slice of counts.
Helper function to create a vector of bins from a slice of counts .
pub fn from(v: &[u32]) -> Vec<Bin> {
        v.iter()
            .map(|x| Bin {
                count: *x,
                label: 0,
            })
            .collect()
    }
pub fn from ( v : & [ u32 ] ) -> Vec < Bin > { v . iter ( ) . map ( | x | Bin { count : * x , label : 0 , } ) . collect ( ) }
Helper function to create a vector of bins from a slice of counts.
Helper function to create a vector of bins from a slice of counts .
v
&[u32]