47 const std::vector<Real> & yaxis,
56 Real
sample(
const Real s1,
const Real s2)
const override;
63 Real
sampleDerivative(
const Real s1,
const Real s2,
unsigned int deriv_var)
const override;
68 unsigned int deriv_var)
const override;
72 Real s1, Real s2, Real & y, Real & dy_ds1, Real & dy_ds2)
const override;
76 unsigned int & lowerX,
77 unsigned int & upperX)
const;
DualNumber< Real, DNDerivativeType, true > ADReal
DualNumber< Real, Real > ChainedReal
This class interpolates tabulated data with a Bidimension function (either bicubic or bilinear).
virtual void sampleValueAndDerivatives(Real, Real, Real &, Real &, Real &) const
Samples value and first derivatives at point (x1, x2) Use this function for speed when computing both...
This class applies the Least Squares algorithm to a set of points to provide a smooth curve for sampl...
Real sample(const Real s1, const Real s2) const override
This function will take an independent variable input and will return the dependent variable based on...
ColumnMajorMatrix _z_surface
void getNeighborIndices(const std::vector< Real > &inArr, Real x, unsigned int &lowerX, unsigned int &upperX) const
T sampleDerivativeInternal(const T s1, const T s2, const unsigned int deriv_var) const
void sampleValueAndDerivatives(Real s1, Real s2, Real &y, Real &dy_ds1, Real &dy_ds2) const override
Samples value and first derivatives at point (x1, x2) Use this function for speed when computing both...
Real sampleDerivative(const Real s1, const Real s2, unsigned int deriv_var) const override
Samples first derivative at point (s1, s2)
virtual ~BilinearInterpolation()=default
T sampleInternal(const T &s1, const T &s2) const
sampleInternal only used by BilinearInterpolation, hence made private