tfel
Loading...
Searching...
No Matches
tfel::check::L2Comparison Struct Reference

comparison of two curves by the L2 norm of their difference, normalized by the maximum absolute value of the reference. This is the counterpart of the Area comparison, which uses the L1 norm. More...

#include </home/runner/work/tfel/tfel/tfel-check/include/TFEL/Check/L2Comparison.hxx>

Inheritance diagram for tfel::check::L2Comparison:
tfel::check::AreaComparison tfel::check::Comparison

Additional Inherited Members

Public Member Functions inherited from tfel::check::AreaComparison
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 inherited from tfel::check::AreaComparison
enum struct  Norm { L1 , L2 }
 norm of the difference between both curves
Protected Member Functions inherited from tfel::check::AreaComparison
 AreaComparison (const std::string &, const Norm)
 constructor
Protected Attributes inherited from tfel::check::AreaComparison
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

Detailed Description

comparison of two curves by the L2 norm of their difference, normalized by the maximum absolute value of the reference. This is the counterpart of the Area comparison, which uses the L1 norm.


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