Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
LinearInterpolant.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_LinearInterpolant_H_
9#define model_LinearInterpolant_H_
10
11#include <InterpolantBase.h>
12
13namespace model{
14
16 {
17
18 static double linearSegment(const InterpolantBase::MapType::const_iterator& iter1,const InterpolantBase::MapType::const_iterator& iter2,const double& x);
19 double _f(const double& x) const override;
20
21 public:
22
25
26 };
27
28} // close namespace model
29#endif
Eigen::Matrix< double, Eigen::Dynamic, 2 > MatrixType
InterpolantBase(const MapType &data, const ExtrapolationMethod &extrap)
std::map< double, double > MapType
LinearInterpolant(const InterpolantBase::MatrixType &data, const ExtrapolationMethod &extrap=ExtrapolationMethod())
x
Definition int_R.m:12