2 #if !defined(LSST_AFW_MATH_INTERPOLATE_H) 3 #define LSST_AFW_MATH_INTERPOLATE_H 27 #include "ndarray_fwd.h" 61 ndarray::Array<double, 1>
interpolate(ndarray::Array<double const, 1>
const &
x)
const;
98 ndarray::Array<double const, 1>
const &
y,
122 #endif // LSST_AFW_MATH_INTERPOLATE_H Interpolate::Style stringToInterpStyle(std::string const &style)
Conversion function to switch a string to an Interpolate::Style.
Interpolate(Interpolate const &)=delete
virtual double interpolate(double const x) const =0
friend std::shared_ptr< Interpolate > makeInterpolate(std::vector< double > const &x, std::vector< double > const &y, Interpolate::Style const style)
A factory function to make Interpolate objects.
Interpolate & operator=(Interpolate const &)=delete
A base class for image defects.
std::vector< double > const _x
virtual ~Interpolate()=default
Interpolate::Style lookupMaxInterpStyle(int const n)
Get the highest order Interpolation::Style available for 'n' points.
int lookupMinInterpPoints(Interpolate::Style const style)
Get the minimum number of points needed to use the requested interpolation style. ...
Interpolate(std::vector< double > const &x, std::vector< double > const &y, Interpolate::Style const style=UNKNOWN)
Base class ctor.
std::vector< double > const _y
Interpolate::Style const _style