casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::SumAbsDiff< T, Accum > Struct Template Reference

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

#include <Functors.h>

List of all members.

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 casa::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 606 of file Functors.h.


Constructor & Destructor Documentation

template<typename T , typename Accum = T>
casa::SumAbsDiff< T, Accum >::SumAbsDiff ( base) [inline, explicit]

Definition at line 608 of file Functors.h.


Member Function Documentation

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

Definition at line 609 of file Functors.h.

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


Member Data Documentation

template<typename T , typename Accum = T>
Accum casa::SumAbsDiff< T, Accum >::itsBase [private]

Definition at line 612 of file Functors.h.

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


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