casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::SumAbsDiff< T, Accum > Struct Template Reference

Functor to add absolute diff of right and base value to left. More...

#include <Functors.h>

Inheritance diagram for casacore::SumAbsDiff< T, Accum >:

Public Member Functions

 SumAbsDiff (T base)
 
Accum operator() (Accum left, T right) const
 

Private Attributes

Accum itsBase
 

Detailed Description

template<typename T, typename Accum = T>
struct casacore::SumAbsDiff< T, Accum >

Functor to add absolute diff of right and base value to left.

It can be used to calculate the average deviation.

Definition at line 635 of file Functors.h.

Constructor & Destructor Documentation

template<typename T , typename Accum = T>
casacore::SumAbsDiff< T, Accum >::SumAbsDiff ( base)
inlineexplicit

Definition at line 637 of file Functors.h.

Member Function Documentation

template<typename T , typename Accum = T>
Accum casacore::SumAbsDiff< T, Accum >::operator() ( Accum  left,
right 
) const
inline

Definition at line 638 of file Functors.h.

References casacore::abs(), and casacore::SumAbsDiff< T, Accum >::itsBase.

Member Data Documentation

template<typename T , typename Accum = T>
Accum casacore::SumAbsDiff< T, Accum >::itsBase
private

Definition at line 641 of file Functors.h.

Referenced by casacore::SumAbsDiff< T, Accum >::operator()().


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