Parameters
Double[]
x
Sample points (N), sorted ascendingly.
Double[]
y
Sample values (N), sorted ascendingly by x.
Double[]
w
Barycentric weights (N), sorted ascendingly by x.