Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
Math
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
13
namespace
model
{
14
15
class
LinearInterpolant
:
public
InterpolantBase
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
23
LinearInterpolant
(
const
InterpolantBase::MatrixType
& data,
const
ExtrapolationMethod
& extrap=
ExtrapolationMethod
());
24
LinearInterpolant
(
const
InterpolantBase::MapType
& data,
const
ExtrapolationMethod
& extrap=
ExtrapolationMethod
());
25
26
};
27
28
}
// close namespace model
29
#endif
InterpolantBase.h
model::InterpolantBase::MatrixType
Eigen::Matrix< double, Eigen::Dynamic, 2 > MatrixType
Definition
InterpolantBase.h:32
model::InterpolantBase::InterpolantBase
InterpolantBase(const MapType &data, const ExtrapolationMethod &extrap)
Definition
InterpolantBase.cpp:32
model::InterpolantBase::MapType
std::map< double, double > MapType
Definition
InterpolantBase.h:31
model::LinearInterpolant::LinearInterpolant
LinearInterpolant(const InterpolantBase::MatrixType &data, const ExtrapolationMethod &extrap=ExtrapolationMethod())
Definition
LinearInterpolant.cpp:17
x
x
Definition
int_R.m:12
model
Definition
DD_converter.dox:2
model::ExtrapolationMethod
Definition
InterpolantBase.h:18
Generated by
1.15.0