Skip to main content

Crate perfgate_stats

Crate perfgate_stats 

Source
Expand description

Statistical functions for benchmarking analysis.

This crate provides pure statistical functions with no I/O dependencies. It is designed to be used by perfgate-domain and can be independently tested and versioned.

§Overview

The crate provides:

  • Summary statistics (median, min, max) for u64 and f64 slices
  • Percentile calculation
  • Mean and variance computation

Enums§

StatsError

Functions§

mean_and_variance
Compute sample mean and unbiased variance (Welford’s algorithm).
median_f64_sorted
median_u64_sorted
percentile
Compute the q-th percentile (0.0–1.0) using linear interpolation.
summarize_f64
Compute min, max, and median for an f64 slice.
summarize_u64
Compute min, max, and median for a u64 slice.