package gsl

  1. Overview
  2. Docs

Least-Squares Fitting

type linear_fit_coeffs = {
  1. c0 : float;
  2. c1 : float;
  3. cov00 : float;
  4. cov01 : float;
  5. cov11 : float;
  6. 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 = {
  1. m_c1 : float;
  2. m_cov11 : float;
  3. 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
OCaml

Innovation. Community. Security.