MathUtilInterp(DateTime, DateTime, Double, DateTime, Double) Method
Interpolates linearly between two points (t1, y1) and (t2, y2) and returns function value y at t.
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 t,
DateTime t1,
double y1,
DateTime t2,
double y2
)
- t DateTime
- Value of t under interest
- t1 DateTime
- First point DateTime value
- y1 Double
- First point y value
- t2 DateTime
- Second point DateTime value
- y2 Double
- Second point y value
DoubleLinear function value at DateTime t