Module Fit

module Fit: sig .. end
Least-Squares Fitting

type linear_fit_coeffs = {
   c0 :float;
   c1 :float;
   cov00 :float;
   cov01 :float;
   cov11 :float;
   sumsq :float;
}
val linear : ?weight:float array -> float array -> float array -> linear_fit_coeffs
val linear_est : float -> coeffs:linear_fit_coeffs -> Fun.result
type mul_fit_coeffs = {
   m_c1 :float;
   m_cov11 :float;
   m_sumsq :float;
}
val mul : ?weight:float array -> float array -> float array -> mul_fit_coeffs
val mul_est : float -> coeffs:mul_fit_coeffs -> Fun.result