SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
slip::Relative_error_L22< _Rp, _Tp > Struct Template Reference

Computes the Relative L22 error between two values x and y: $ \frac{(x - y)^2}{x^2}$. More...

#include <compare.hpp>

Inheritance diagram for slip::Relative_error_L22< _Rp, _Tp >:
Inheritance graph

Public Member Functions

_Rp operator() (const _Tp &x, const _Tp &y) const
 

Detailed Description

template<typename _Rp, typename _Tp>
struct slip::Relative_error_L22< _Rp, _Tp >

Computes the Relative L22 error between two values x and y: $ \frac{(x - y)^2}{x^2}$.

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
Date
2009/03/30
Since
1.0.0
Version
0.0.1
Parameters
xx value.
yy value.
Returns
$ \frac{(x - y)^2}{x^2}$
Remarks
return y^2 if x == 0

Definition at line 2527 of file compare.hpp.

Member Function Documentation

template<typename _Rp , typename _Tp >
_Rp slip::Relative_error_L22< _Rp, _Tp >::operator() ( const _Tp &  x,
const _Tp &  y 
) const
inline

Definition at line 2530 of file compare.hpp.


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