tfel
Loading...
Searching...
No Matches
mtest::LPIEvolution Struct Referencefinal

a linear per interval evolution More...

#include </home/runner/work/tfel/tfel/mtest/include/MTest/Evolution.hxx>

Inheritance diagram for mtest::LPIEvolution:
mtest::Evolution

Public Member Functions

 LPIEvolution (const std::vector< real > &, const std::vector< real > &)
real operator() (const real) const override
bool isConstant () const override
void setValue (const real) override
 set the evolution value
void setValue (const real, const real) override
 set the evolution value for a given date
 ~LPIEvolution () override
 destructor
Public Member Functions inherited from mtest::Evolution
virtual ~Evolution ()
 destructor

Static Public Member Functions

static real interpolate (const std::map< real, real > &, const real)

Detailed Description

a linear per interval evolution

Constructor & Destructor Documentation

◆ LPIEvolution()

mtest::LPIEvolution::LPIEvolution ( const std::vector< real > & ,
const std::vector< real > &  )

constructor

Parameters
[in]t: times
[in]v: values

Member Function Documentation

◆ interpolate()

real mtest::LPIEvolution::interpolate ( const std::map< real, real > & ,
const real  )
staticnodiscard
Returns
the interpolation in a set of values
Parameters
[in]valuesvalues use to create the interpolation
[in]tabsicssa

◆ isConstant()

bool mtest::LPIEvolution::isConstant ( ) const
nodiscardoverridevirtual
Returns
true if the evolution is constant

Implements mtest::Evolution.

◆ operator()()

real mtest::LPIEvolution::operator() ( const real ) const
nodiscardoverridevirtual
Returns
the value of the evolution at the given time
Parameters
[in]ttime

Implements mtest::Evolution.

◆ setValue() [1/2]

void mtest::LPIEvolution::setValue ( const real )
overridevirtual

set the evolution value

Note
most evolution will throw an exception (this method only makes sense for constant evolutions)
Parameters
[in]v: value

Implements mtest::Evolution.

◆ setValue() [2/2]

void mtest::LPIEvolution::setValue ( const real ,
const real  )
overridevirtual

set the evolution value for a given date

Parameters
[in]ttime
[in]vvalue
Note
most evolution will throw an exception (for example, this method does not makes sense for constant evolutions)

Implements mtest::Evolution.


The documentation for this struct was generated from the following file: