Function lupnt::LinearInterp1d¶
Defined in File interpolation.cc
Function Documentation¶
-
double lupnt::LinearInterp1d(const VecXd &x, const VecXd &z, double xi)¶
Linear interpolation in 1D.
Piecewise-linear interpolation of a 1D tabulated function
z(x)at pointix.Used throughout the simulator for lookups in tabulated data: e.g.
Sp3Loader::GetPositionEcefinterpolates GNSS satellite ECEF position/clock-bias columns vs. epoch,GnssConstellation/GnssMeasurementinterpolate fitted ECI state history vs. epoch, andAntenna::ComputeGaininterpolates a 1D antenna gain pattern vs. angle.- Parameters:
x – Vector of x values
z – Vector of z values
xi – x interpolation point
x – Strictly monotonic table of independent-variable samples
z – Table of dependent-variable values, same size as
xix – Query point; must lie within
[x(0), x(end)](withinEPS), else throws
- Returns:
Linearly interpolated value of
zatix