Maths_interpolate¶
This document is auto-generated for Owl’s APIs. #2 entries have been extracted. timestamp: 2018-04-16 13:12:53
Github: {Signature} {Implementation}
val polint : float array -> float array -> float -> float * float
polint xs ys x
performs polynomial interpolation of the given arrays xs
and ys
. Given arrays xs[0..(n-1)]
and ys[0..(n-1)]
, and a value
x
, the function returns a value y
, and an error estimate dy
. If
P(x)
is the polynomial of degree N − 1
such that P(xs[i]) = ys[i]
for i = 0,...,n-1
,
- Parameters:
xs
: an array of inputx
values ofP(x)
.ys
: an array of correspondingy
values ofP(x)
.x
: value to interpolate.
- Returns:
(y, dy)
whereiny
is the returned valuey = P(x)
, anddy
is the estimated error.
val ratint : float array -> float array -> float -> float * float
TODO