casa
$Rev:20696$
|
Functor to add absolute diff of right and base value to left. More...
#include <Functors.h>
Public Member Functions | |
SumAbsDiff (T base) | |
Accum | operator() (Accum left, T right) const |
Private Attributes | |
Accum | itsBase |
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.
casa::SumAbsDiff< T, Accum >::SumAbsDiff | ( | T | base | ) | [inline, explicit] |
Definition at line 608 of file Functors.h.
Accum casa::SumAbsDiff< T, Accum >::operator() | ( | Accum | left, |
T | right | ||
) | const [inline] |
Definition at line 609 of file Functors.h.
References casa::abs(), and casa::SumAbsDiff< T, Accum >::itsBase.
Accum casa::SumAbsDiff< T, Accum >::itsBase [private] |
Definition at line 612 of file Functors.h.
Referenced by casa::SumAbsDiff< T, Accum >::operator()().