/usr/lib/ocaml/gsl/gsl_fit.mli is in libocamlgsl-ocaml-dev 1.19.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | (* gsl-ocaml - OCaml interface to GSL *)
(* Copyright (©) 2002-2012 - Olivier Andrieu *)
(* Distributed under the terms of the GPL version 3 *)
(** Least-Squares Fitting *)
type linear_fit_coeffs = {
c0 : float; c1 : float;
cov00 : float ; cov01 : float ; cov11 : float;
sumsq : float ;
}
external linear :
?weight:float array -> float array -> float array -> linear_fit_coeffs
= "ml_gsl_fit_linear"
external linear_est : float -> coeffs:linear_fit_coeffs -> Gsl_fun.result
= "ml_gsl_fit_linear_est"
type mul_fit_coeffs = {
m_c1 : float ;
m_cov11 : float ;
m_sumsq : float ;
}
external mul :
?weight:float array -> float array -> float array -> mul_fit_coeffs
= "ml_gsl_fit_mul"
external mul_est : float -> coeffs:mul_fit_coeffs -> Gsl_fun.result
= "ml_gsl_fit_mul_est"
|