PCL
pcl::LinearInterpolation< T > Class Template Reference

Linear interpolation algorithm. More...

#include <LinearInterpolation.h>

+ Inheritance diagram for pcl::LinearInterpolation< T >:

Public Member Functions

 LinearInterpolation ()=default
 
 LinearInterpolation (const LinearInterpolation &)=default
 
 ~LinearInterpolation () override
 
bool IsValid () const override
 
double operator() (double x) const override
 
- Public Member Functions inherited from pcl::UnidimensionalInterpolation< double >
 UnidimensionalInterpolation ()=default
 
 UnidimensionalInterpolation (const UnidimensionalInterpolation &)=default
 
virtual ~UnidimensionalInterpolation ()
 
virtual void Clear ()
 
void Initialize (const double *x, const double *y, int n)
 
virtual void Initialize (const vector_type &x, const vector_type &y)
 
int Length () const
 
bool UsingImplicitX () const
 
const vector_typeX () const
 
const vector_typeY () const
 

Additional Inherited Members

- Public Types inherited from pcl::UnidimensionalInterpolation< double >
using vector_type = GenericVector< double >
 

Detailed Description

template<typename T = double>
class pcl::LinearInterpolation< T >

The linear interpolation algorithm interpolates from two adjacent mapped source data items. It evaluates a linear function defined by the two adjacent points.

See also
AkimaInterpolation, CubicSplineInterpolation

Definition at line 78 of file LinearInterpolation.h.

Constructor & Destructor Documentation

◆ LinearInterpolation() [1/2]

template<typename T = double>
pcl::LinearInterpolation< T >::LinearInterpolation ( )
default

Constructs a LinearInterpolation object.

◆ LinearInterpolation() [2/2]

template<typename T = double>
pcl::LinearInterpolation< T >::LinearInterpolation ( const LinearInterpolation< T > &  )
default

Copy constructor.

◆ ~LinearInterpolation()

template<typename T = double>
pcl::LinearInterpolation< T >::~LinearInterpolation ( )
inlineoverride

Destroys a LinearInterpolation object.

Definition at line 97 of file LinearInterpolation.h.

Member Function Documentation

◆ IsValid()

template<typename T = double>
bool pcl::LinearInterpolation< T >::IsValid ( ) const
inlineoverridevirtual

Returns true iff this interpolation is valid, i.e. if it has been correctly initialized and is ready to interpolate function values.

Reimplemented from pcl::UnidimensionalInterpolation< double >.

Definition at line 105 of file LinearInterpolation.h.

◆ operator()()

template<typename T = double>
double pcl::LinearInterpolation< T >::operator() ( double  x) const
inlineoverridevirtual

Interpolated value at x location.

Implements pcl::UnidimensionalInterpolation< double >.

Definition at line 113 of file LinearInterpolation.h.


The documentation for this class was generated from the following file: