casacore
Public Member Functions | Private Attributes | List of all members
casacore::SumSqrDiff< T, Accum > Struct Template Reference

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

#include <Functors.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::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 607 of file Functors.h.

Constructor & Destructor Documentation

◆ SumSqrDiff()

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

Definition at line 609 of file Functors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 610 of file Functors.h.

References casacore::SumSqrDiff< T, Accum >::itsBase.

Member Data Documentation

◆ itsBase

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

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