Linearly interpolates between a collection of X & Y data.

Inputs

Number Name Object Type Description Optional
1 X List<System.Double> List of X-values, ordered ascending. No
2 Y List<System.Double> List of Y-values corresponding to the X-value at the same index. No
3 X-Val System.Double X-value to interpolate No
4 Outside System.Int32 How to treat an X-value that falls outside of the bounds of provided values. {0} = return 0. {1} = return the first or last value, depending on if the X-value is smaller than the first X or larger than the last X. {2} = linearly extrapolate based on the first or last two points. Defaults to 0. Yes

Outputs

Number Name Object Type Description
1 Result System.Double The interpolated value.

InterpolateXY.PNG