casacore
|
Functor to add squared diff of right and base value to left. More...
#include <ElementFunctions.h>
Public Member Functions | |
SumSqrDiff (T base) | |
Accum | operator() (Accum left, T right) const |
Private Attributes | |
Accum | itsBase |
Functor to add squared diff of right and base value to left.
It can be used to calculate the variance. Note: it is specialized for complex values to handle real and imag separately.
Definition at line 223 of file ElementFunctions.h.
|
inlineexplicit |
Definition at line 225 of file ElementFunctions.h.
|
inline |
Definition at line 226 of file ElementFunctions.h.
References casacore::arrays_internal::SumSqrDiff< T, Accum >::itsBase.
|
private |
Definition at line 229 of file ElementFunctions.h.
Referenced by casacore::arrays_internal::SumSqrDiff< T, Accum >::operator()(), and casacore::arrays_internal::SumSqrDiff< std::complex< T > >::operator()().