29 const std::vector<Real> & Y,
30 const bool extrap =
false);
38 void setData(
const std::vector<Real> & X,
const std::vector<Real> & Y)
52 T
sample(
const T & x)
const;
83 Real
range(
int i)
const;
LinearInterpolation ADLinearInterpolation
This class interpolates values given a set of data pairs and an abscissa.
virtual ~LinearInterpolation()=default
void setData(const std::vector< Real > &X, const std::vector< Real > &Y)
Set the x and y values.
T sampleDerivative(const T &x) const
This function will take an independent variable input and will return the derivative of the dependent...
T sample(const T &x) const
This function will take an independent variable input and will return the dependent variable based on...
Real integrate()
This function returns the integral of the function over the whole domain.
T integratePartial(const T &x1, const T &x2) const
Returns the integral of the function over a specified domain.
unsigned int getSampleSize() const
This function returns the size of the array holding the points, i.e.