CLAM::CenterOfGravity< o, abs, T, U > Class Template Reference

Class Function that computes 'oth' order Center of Gravity using WeightedPoweredSum Class Function. More...

#include <BasicOps.hxx>

List of all members.

Public Member Functions

 CenterOfGravity ()
operator() (const Array< T > &a, WeightedPoweredSum< o, abs, T > &wPowSum, PoweredSum< o, abs, T > &PowSum, StaticFalse *)
 Memoryless Computation using external lower level functors.
operator() (const Array< T > &a, WeightedPoweredSum< o, abs, T > &wPowSum, PoweredSum< o, abs, T > &PowSum, StaticTrue *b=NULL)
 Memoryfull Computation using external lower level functors.
operator() (const Array< T > &a, StaticFalse *)
 Memoryless Computation using internal lower level functors.
operator() (const Array< T > &a, StaticTrue *b=NULL)
 Memoryfull Computation using internal lower level functors.

Protected Attributes

memory
WeightedPoweredSum< o, abs, T > mWPS
PoweredSum< o, abs, T > mPS

Detailed Description

template<int o, bool abs = false, class T = TData, class U = TData>
class CLAM::CenterOfGravity< o, abs, T, U >

Class Function that computes 'oth' order Center of Gravity using WeightedPoweredSum Class Function.

It also has associated memory so operation is not performed more than necessary.

Definition at line 409 of file BasicOps.hxx.


Constructor & Destructor Documentation

template<int o, bool abs = false, class T = TData, class U = TData>
CLAM::CenterOfGravity< o, abs, T, U >::CenterOfGravity (  )  [inline]

Definition at line 412 of file BasicOps.hxx.


Member Function Documentation

template<int o, bool abs = false, class T = TData, class U = TData>
U CLAM::CenterOfGravity< o, abs, T, U >::operator() ( const Array< T > &  a,
StaticTrue b = NULL 
) [inline]

Memoryfull Computation using internal lower level functors.

Definition at line 438 of file BasicOps.hxx.

template<int o, bool abs = false, class T = TData, class U = TData>
U CLAM::CenterOfGravity< o, abs, T, U >::operator() ( const Array< T > &  a,
StaticFalse  
) [inline]

Memoryless Computation using internal lower level functors.

Definition at line 433 of file BasicOps.hxx.

template<int o, bool abs = false, class T = TData, class U = TData>
U CLAM::CenterOfGravity< o, abs, T, U >::operator() ( const Array< T > &  a,
WeightedPoweredSum< o, abs, T > &  wPowSum,
PoweredSum< o, abs, T > &  PowSum,
StaticTrue b = NULL 
) [inline]

Memoryfull Computation using external lower level functors.

Definition at line 426 of file BasicOps.hxx.

template<int o, bool abs = false, class T = TData, class U = TData>
U CLAM::CenterOfGravity< o, abs, T, U >::operator() ( const Array< T > &  a,
WeightedPoweredSum< o, abs, T > &  wPowSum,
PoweredSum< o, abs, T > &  PowSum,
StaticFalse  
) [inline]

Memoryless Computation using external lower level functors.

Definition at line 414 of file BasicOps.hxx.


Member Data Documentation

template<int o, bool abs = false, class T = TData, class U = TData>
U CLAM::CenterOfGravity< o, abs, T, U >::memory [protected]

Definition at line 444 of file BasicOps.hxx.

Referenced by CLAM::CenterOfGravity< 1, abs, T, U >::operator()().

template<int o, bool abs = false, class T = TData, class U = TData>
PoweredSum<o,abs,T> CLAM::CenterOfGravity< o, abs, T, U >::mPS [protected]

Definition at line 446 of file BasicOps.hxx.

Referenced by CLAM::CenterOfGravity< 1, abs, T, U >::operator()().

template<int o, bool abs = false, class T = TData, class U = TData>
WeightedPoweredSum<o,abs,T> CLAM::CenterOfGravity< o, abs, T, U >::mWPS [protected]

Definition at line 445 of file BasicOps.hxx.

Referenced by CLAM::CenterOfGravity< 1, abs, T, U >::operator()().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3