org.epics.pvmanager.extra
Interface Interpolation


public interface Interpolation

Defines a way to interpolate some scattered points to an equally distanced grid.

Author:
carcassi

Method Summary
 double[] interpolate(double[] x, double[] y, int nSamples)
          Returns a set of interpolated y, equally spaced.
 

Method Detail

interpolate

double[] interpolate(double[] x,
                     double[] y,
                     int nSamples)
Returns a set of interpolated y, equally spaced.

Parameters:
x - an array of position value, assumed to be monotonically increasing
y - an array of values, assumed to be the same length of x
nSamples - the number of samples to be returned
Returns:
a new array with nSamples interpolated values