casacore
|
Specialize for complex values. More...
#include <ElementFunctions.h>
Public Member Functions | |
SumSqrDiff (std::complex< T > base) | |
std::complex< T > | operator() (std::complex< T > left, std::complex< T > right) const |
Private Attributes | |
std::complex< T > | itsBase |
Specialize for complex values.
Variance has to be taken for the absolute value of a complex value. thus sum(abs((a[i] - mean)**2 where the sqrt used in abs and the **2 cancel each other, thus can be left out. See also https://en.wikipedia.org/wiki/Complex_random_variable#Variance Note that although the sum is real, a complex value is used to have equal template types.
Definition at line 239 of file ElementFunctions.h.
|
inlineexplicit |
Definition at line 241 of file ElementFunctions.h.
|
inline |
Definition at line 242 of file ElementFunctions.h.
References casacore::arrays_internal::SumSqrDiff< T, Accum >::itsBase.
|
private |
Definition at line 246 of file ElementFunctions.h.