16#ifndef UTILS_INTERPOLATE2D_H
17#define UTILS_INTERPOLATE2D_H
63 int setData(
const std::vector<double>& xValues,
const std::vector<double>& yValues);
73 int getMinX(
double& minX)
const;
83 int getMaxX(
double& maxX)
const;
98 std::vector<double> _x_data;
99 std::vector<double> _y_data;
101 unsigned int _last_bottom = 0;
102 unsigned int _last_top = 1;
A class for performing simple x-y linear interpolation.
Definition Interpolate2D.h:50
int getMinX(double &minX) const
Returns the minimum x-value from the stored data.
Definition Interpolate2D.cpp:39
int interpolate(double x, double &yInterpolated)
Performs linear interpolation given an x-value.
Definition Interpolate2D.cpp:61
int setData(const std::vector< double > &xValues, const std::vector< double > &yValues)
Sets the data for the interpolator.
Definition Interpolate2D.cpp:5
int getMaxX(double &maxX) const
Returns the maximum x-value from the stored data.
Definition Interpolate2D.cpp:50
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22