use crateOlsFit;
/// Condition number of the design matrix: the ratio of its largest to smallest
/// singular value.
///
/// This is a single whole-design measure of ill-conditioning, complementary to
/// (and sometimes in disagreement with) the per-predictor [`vif`](super::vif).
///
/// The value is computed on the design matrix **exactly as fitted** — including
/// the intercept column and on the original (unscaled) predictor columns. Other
/// tools sometimes report the condition number of a column-scaled or normalized
/// design, which can differ substantially; the scaling convention is stated here
/// so the number is reproducible rather than ambiguous.
///
/// Returns [`f64::INFINITY`] if the smallest singular value is zero (an exactly
/// rank-deficient design — though such a design would already have failed at
/// [`OlsFit`] construction).