/usr/lib/ocaml/gsl/gsl_interp.mli is in libocamlgsl-ocaml-dev 1.19.1-2build2.
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | (* gsl-ocaml - OCaml interface to GSL *)
(* Copyright (©) 2002-2012 - Olivier Andrieu *)
(* Distributed under the terms of the GPL version 3 *)
(** Interpolation *)
type t
type accel
type interp_type =
| LINEAR
| POLYNOMIAL
| CSPLINE
| CSPLINE_PERIODIC
| AKIMA
| AKIMA_PERIODIC
val make : interp_type -> int -> t
val init : t -> float array -> float array -> unit
external name : t -> string
= "ml_gsl_interp_name"
external min_size : t -> int
= "ml_gsl_interp_min_size"
val make_accel : unit -> accel
external i_eval : t -> float array -> float array
-> float -> accel -> float
= "ml_gsl_interp_eval"
external i_eval_deriv : t -> float array -> float array
-> float -> accel -> float
= "ml_gsl_interp_eval_deriv"
external i_eval_deriv2 : t -> float array -> float array
-> float -> accel -> float
= "ml_gsl_interp_eval_deriv2"
external i_eval_integ : t -> float array -> float array
-> float -> float -> accel -> float
= "ml_gsl_interp_eval_integ_bc" "ml_gsl_interp_eval_integ"
(** {3 Higher level functions} *)
type interp = {
interp : t ;
accel : accel ;
xa : float array ;
ya : float array ;
size : int ;
i_type : interp_type ;
}
val make_interp : interp_type -> float array -> float array -> interp
val eval : interp -> float -> float
(** [eval_array interp x_a y_a] fills the array [y_a] with the
evaluation of the interpolation function [interp] for each point
of array [x_a]. [x_a] and [y_a] must have the same length. *)
external eval_array : interp -> float array -> float array -> unit
= "ml_gsl_interp_eval_array"
val eval_deriv : interp -> float -> float
val eval_deriv2 : interp -> float -> float
val eval_integ : interp -> float -> float -> float
|