27 #ifndef SCIMATH_INTERPOLATE1D_H
28 #define SCIMATH_INTERPOLATE1D_H
36 template<
class Range>
class SampledFunctional;
140 template <
class Domain,
class Range>
class Interpolate1D :
141 public Function1D<Domain, Range> {
226 #ifndef CASACORE_NO_AUTO_TEMPLATES
227 #include <casacore/scimath/Functionals/Interpolate1D.tcc>
228 #endif //# CASACORE_NO_AUTO_TEMPLATES
Interpolate1D()
The default constructor generates a useless object until the setData function has been called...
virtual const String & name() const
Name of function.
Interpolate in one dimension.
Range polynomialInterpolation(const Domain x, uInt n, uInt offset) const
A private function for doing polynomial interpolation.
void setMethod(uInt method)
A base class for indexing into arbitrary data types.
uInt getMethod() const
inquire/set the current interpolation method.
Vector< Range > getY() const
Crude but sometimes useful.
Numerical functional interface class.
virtual Function< Domain, Range > * clone() const
A function to copy the Interpolate1D object.
virtual Range eval(typename Function1D< Domain, Range >::FunctionArg x) const
Interpolation is done using the () operator (see example above).
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)
Vector< Domain > getX() const
Access the data set that interpolation is done over.
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.
Fits a third order polynomial to 4 pts.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.