added comment to profiler get_statistics function

This commit is contained in:
Malisa Smith 2016-07-07 13:19:45 -07:00
parent b7510bd89f
commit 854cb5839f

View file

@ -327,6 +327,7 @@ impl Profiler {
true
}
/// Get tuple (mean, median, min, max) for profiler statistics.
pub fn get_statistics(data: &[f64]) -> (f64, f64, f64, f64) {
data.iter().fold(-f64::INFINITY, |a, &b| {
debug_assert!(a < b, "Data must be sorted");