Binary Operator for use with std::accumulate, for computing Sum(i*x(i)^n). More...
#include <BasicOps.hxx>
Public Member Functions | |
WeightedPower () | |
T | operator() (const T &orig, const T &num) |
T | operator() (const T &orig, const T &num, StaticFalse *) |
T | operator() (const T &orig, const T &num, StaticTrue *) |
Protected Attributes | |
TIndex | i |
Pow< s > | mP |
Binary Operator for use with std::accumulate, for computing Sum(i*x(i)^n).
Definition at line 118 of file BasicOps.hxx.
CLAM::WeightedPower< s, abs, T >::WeightedPower | ( | ) | [inline] |
Definition at line 121 of file BasicOps.hxx.
T CLAM::WeightedPower< s, abs, T >::operator() | ( | const T & | orig, | |
const T & | num, | |||
StaticTrue * | ||||
) | [inline] |
Definition at line 130 of file BasicOps.hxx.
T CLAM::WeightedPower< s, abs, T >::operator() | ( | const T & | orig, | |
const T & | num, | |||
StaticFalse * | ||||
) | [inline] |
Definition at line 126 of file BasicOps.hxx.
T CLAM::WeightedPower< s, abs, T >::operator() | ( | const T & | orig, | |
const T & | num | |||
) | [inline] |
Definition at line 122 of file BasicOps.hxx.
TIndex CLAM::WeightedPower< s, abs, T >::i [protected] |
Definition at line 135 of file BasicOps.hxx.
Referenced by CLAM::WeightedPower< 1, abs, T >::operator()().
Pow<s> CLAM::WeightedPower< s, abs, T >::mP [protected] |
Definition at line 136 of file BasicOps.hxx.
Referenced by CLAM::WeightedPower< 1, abs, T >::operator()().