pub fn hist(data: Vec<f64>, bins: usize) -> Result<Histogram, String>
Create a histogram (equivalent to MATLAB’s hist(data, bins))
hist(data, bins)