Gsl.Interp
Interpolation
val make : interp_type -> int -> t
val init : t -> float array -> float array -> unit
val name : t -> string
val min_size : t -> int
val make_accel : unit -> accel
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
val eval_array : interp -> float array -> float array -> unit
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.
val eval_deriv : interp -> float -> float
val eval_deriv2 : interp -> float -> float
val eval_integ : interp -> float -> float -> float