2 #if !defined(LSST_AFW_MATH_INTERPOLATE_H)
3 #define LSST_AFW_MATH_INTERPOLATE_H
26 #include "lsst/base.h"
27 #include "ndarray_fwd.h"
50 friend std::shared_ptr<Interpolate>
makeInterpolate(std::vector<double>
const &
x,
51 std::vector<double>
const &y,
56 std::vector<double>
interpolate(std::vector<double>
const &
x)
const;
57 ndarray::Array<double, 1>
interpolate(ndarray::Array<double const, 1>
const &
x)
const;
64 std::vector<double>
const &y,
76 Interpolate(std::pair<std::vector<double>, std::vector<double> >
const xy,
79 std::vector<double>
const _x;
80 std::vector<double>
const _y;
95 std::shared_ptr<Interpolate>
makeInterpolate(std::vector<double>
const &
x, std::vector<double>
const &y,
97 std::shared_ptr<Interpolate>
makeInterpolate(ndarray::Array<double const, 1>
const &
x,
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.
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.
std::shared_ptr< Interpolate > makeInterpolate(std::vector< double > const &x, std::vector< double > const &y, Interpolate::Style const style=Interpolate::AKIMA_SPLINE)
A factory function to make Interpolate objects.
metadata import lsst afw display as afwDisplay n
std::vector< double > const _x
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