tfel
Loading...
Searching...
No Matches
tfel::check::AreaComparison Struct Reference
Inheritance diagram for tfel::check::AreaComparison:
tfel::check::Comparison tfel::check::L2Comparison

Public Member Functions

void compare () override
 executes the comparison between the values
Public Member Functions inherited from tfel::check::Comparison
 Comparison (const std::shared_ptr< Column > c1, const std::shared_ptr< Column > c2, const double prec, const double precision2, const std::shared_ptr< Column > ci, const std::string interpolationType, const bool interpolationIsConform, const std::shared_ptr< Column > colIntegralInterpolated, const std::shared_ptr< Interpolation > integralInterpolation)
bool hasSucceed () const
std::string getMsgLog () const
void setParameters (const std::shared_ptr< Column > c1, const std::shared_ptr< Column > c2, const double prec, const double precision2, const std::shared_ptr< Column > ci, const std::string interpolationType, const bool interpolationIsConform, const std::shared_ptr< Column > colIntegralInterpolated, const std::shared_ptr< Interpolation > integralInterpolation)
 sets the parameters for the comparison
const std::string & getName () const
std::string getLocation (const std::optional< std::size_t > &) const
virtual ~Comparison ()
 destructor

Protected Types

enum struct  Norm { L1 , L2 }
 norm of the difference between both curves

Protected Member Functions

 AreaComparison (const std::string &, const Norm)
 constructor

Protected Attributes

Norm norm = Norm::L1
 norm of the difference between both curves
Protected Attributes inherited from tfel::check::Comparison
bool success
std::string msgLog
std::shared_ptr< Column > c1
std::shared_ptr< Column > c2
double prec
double precision2
std::shared_ptr< Column > ci
std::string interpolationType
bool interpolationIsConform
std::string name
std::shared_ptr< Column > colIntegralInterpolated
std::shared_ptr< Interpolation > integralInterpolation

Constructor & Destructor Documentation

◆ AreaComparison()

tfel::check::AreaComparison::AreaComparison ( const std::string & ,
const Norm  )
protected

constructor

Parameters
[in]nname of the comparison
[in]tnorm of the difference between both curves

Member Function Documentation

◆ compare()

void tfel::check::AreaComparison::compare ( )
overridevirtual

executes the comparison between the values

Implements tfel::check::Comparison.


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