Commit 5235b681 authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[algorithm] Added getter for data source in interpolators

parent e701eb91
......@@ -34,6 +34,9 @@ class Interpolator
Interpolator(const Vector& x0, const Vector& y0);
const Vector& x0() const;
const Vector& y0() const;
Vector operator()(const Vector& x) const;
unsigned int size() const;
......@@ -122,6 +125,18 @@ Interpolator<T>::Interpolator(const Vector& x0, const Vector& y0) :
assert(x0_.size() == y0_.size());
template <typename T>
const typename Interpolator<T>::Vector& Interpolator<T>::x0() const
return x0_;
template <typename T>
const typename Interpolator<T>::Vector& Interpolator<T>::y0() const
return y0_;
* Interpolate at values x.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment