27 #ifndef SCIMATH_INTERPOLATE1D_H 28 #define SCIMATH_INTERPOLATE1D_H 30 #include <casacore/casa/aips.h> 31 #include <casacore/scimath/Functionals/Function1D.h> 32 #include <casacore/casa/Containers/Block.h> 226 #ifndef CASACORE_NO_AUTO_TEMPLATES 227 #include <casacore/scimath/Functionals/Interpolate1D.tcc> 228 #endif //# CASACORE_NO_AUTO_TEMPLATES Range polynomialInterpolation(const Domain x, uInt n, uInt offset) const
A private function for doing polynomial interpolation.
Interpolate1D()
The default constructor generates a useless object until the setData function has been called...
Vector< Domain > getX() const
Access the data set that interpolation is done over.
virtual Range eval(typename Function1D< Domain, Range >::FunctionArg x) const
Interpolation is done using the () operator (see example above).
Interpolate in one dimension.
virtual const String & name() const
Name of function.
void setMethod(uInt method)
A base class for indexing into arbitrary data types.
Vector< Range > getY() const
virtual Function< Domain, Range > * clone() const
A function to copy the Interpolate1D object.
Crude but sometimes useful.
uInt getMethod() const
inquire/set the current interpolation method.
Method
The different interpolation methods are enumerated here.
bool Bool
Define the standard types used by Casacore.
The most common method and the Default.
Interpolate1D< Domain, Range > & operator=(const Interpolate1D< Domain, Range > &other)
Numerical functional interface class for 1 dimension.
String: the storage and methods of handling collections of characters.
void setData(const SampledFunctional< Domain > &x, const SampledFunctional< Range > &y, const Bool sorted=False, const Bool uniq=False)
Define a new data set for the class to operate on.
this file contains all the compiler specific defines
Fits a third order polynomial to 4 pts.