MathUtilInterp(DateTime, DateTime, Double, ExtrapolationTypes) Method
1-D linear interpolation (table lookup)
Interpolates to find y, the value of the underlying function yTable at the point x.
xTable must be a monoton increasing array of the same length as yTable.
For x values outside xTable extrapolation is applied. Extrapolation method is
specified.
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static double Interp(
DateTime date,
DateTime[] xTable,
double[] yTable,
ExtrapolationTypes extrapolationType
)
- date DateTime
- value where to look up
- xTable DateTime
- Monoton vector of length n
- yTable Double
- vector of length n
- extrapolationType ExtrapolationTypes
- How to extrapolate if not within xTable span
Doubleinterpolated value (looked up value)