pub fn required_samples(
jitter: f64,
expected_leak_seconds: f64,
confidence: f64,
) -> u64Expand description
Estimates the minimum number of requests per class needed to detect a leak of the given size at the given network noise level. Formula from power analysis for comparing means: n ≈ 2 * (z_alpha/2 + z_beta)^2 * sigma^2 / delta^2