Class LinearModel

Inheritance Relationships

Base Type

Class Documentation

class LinearModel : public navtk::utils::InterpolationModel

Linear interpolation model.

Public Functions

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

Constructor.

Parameters
  • x – Independent sample points, size N.

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

virtual double y_at(double x_interp) override

Get the interpolated data point at query value.

Parameters

x_interp – Query point to generate interpolated data at.

Returns

Interpolated data at x_interp.