52 #ifndef __PCL_UnidimensionalInterpolation_h
53 #define __PCL_UnidimensionalInterpolation_h
58 #include <pcl/Diagnostics.h>
117 throw Error(
"Invalid vector length in UnidimensionalInterpolation::Initialize()" );
A simple exception with an associated error message.
Generic vector of arbitrary length.
int Length() const noexcept
A generic interface to one-dimensional interpolation algorithms.
virtual ~UnidimensionalInterpolation()
void Initialize(const T *x, const T *y, int n)
virtual double operator()(double x) const =0
virtual void Initialize(const vector_type &x, const vector_type &y)
const vector_type & X() const
UnidimensionalInterpolation(const UnidimensionalInterpolation &)=default
bool UsingImplicitX() const
virtual bool IsValid() const
const vector_type & Y() const
UnidimensionalInterpolation()=default