Class InterpolationModel

Inheritance Relationships

Derived Types

Class Documentation

class InterpolationModel

Base class that implements the details of some interpolation scheme.

Subclassed by navtk::utils::CubicSplineModel, navtk::utils::LinearModel, navtk::utils::QuadraticSplineModel

Public Functions

virtual ~InterpolationModel() = default

Destructor.

InterpolationModel() = delete

Deleted.

InterpolationModel(const InterpolationModel&) = delete

Deleted.

InterpolationModel &operator=(const InterpolationModel&) = delete

Deleted.

InterpolationModel(InterpolationModel&&) = delete

Deleted.

InterpolationModel &operator=(InterpolationModel&&) = delete

Deleted.

virtual double y_at(double x_interp) = 0

Get the interpolated data point at query value.

Parameters

x_interp – Query point to generate interpolated data at.

Returns

Interpolated data at x_interp.

Protected Functions

inline InterpolationModel(const std::vector<double> &x, const std::vector<double> &y)

Protected constructor.

Parameters
  • x – Independent sample points, size N.

  • y – Dependent sampled values at each x element, size N.

Protected Attributes

std::vector<double> x

Base data times/x values, size N.

std::vector<double> y

Base data, size N.

NearestNeighbors<std::vector<double>::const_iterator, std::less<double>> nn

Used to search over x to find points to use for interpolation.