pub trait ToF64 {
// Required method
fn to_f64(self) -> f64;
}Expand description
Helper trait to convert numeric types to f64 for statistical calculations.
This trait provides a uniform interface for converting integer types to f64, which is necessary for the statistical estimation algorithms. The conversion may be lossy for very large i64 values (beyond 2^53), but this is acceptable for statistical approximations.