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

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
 

Detailed Description

template<typename T, typename Accum = T>
struct casacore::arrays_internal::SumSqrDiff< T, Accum >

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.

Constructor & Destructor Documentation

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

Definition at line 225 of file ElementFunctions.h.

Member Function Documentation

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

Member Data Documentation

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

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