Go to the documentation of this file.
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
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.
Range polynomialInterpolation(const Domain x, uInt n, uInt offset) const
A private function for doing polynomial interpolation.
virtual Range eval(typename Function1D< Domain, Range >::FunctionArg x) const
Interpolation is done using the () operator (see example above).
@ cubic
Fits a third order polynomial to 4 pts
uInt getMethod() const
inquire/set the current interpolation method.
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.
@ spline
Natural Cubic Splines.
A base class for indexing into arbitrary data types.
this file contains all the compiler specific defines
Interpolate in one dimension.
virtual Function< Domain, Range > * clone() const
A function to copy the Interpolate1D object.
@ nearestNeighbour
Crude but sometimes useful.
virtual const String & name() const
Name of function.
Numerical functional interface class.
String: the storage and methods of handling collections of characters.
Method
The different interpolation methods are enumerated here.
Numerical functional interface class for 1 dimension.
bool Bool
Define the standard types used by Casacore.
@ linear
The most common method and the Default.
void setMethod(uInt method)
Interpolate1D< Domain, Range > & operator=(const Interpolate1D< Domain, Range > &other)
Vector< Range > getY() const