code::WeightedSum Class Reference

List of all members.

Detailed Description

On-line computation of a weighted sum.

Add different components and then obtain the result.

Author:
Lakshman
Version:
Id
code_WeightedSum.h,v 1.2 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 WeightedSum ()
void add (float value, float wt)
float computeResult () const
 Returns MissingData if no valid values were added.


Constructor & Destructor Documentation

code::WeightedSum::WeightedSum (  )  [inline]


Member Function Documentation

void code::WeightedSum::add ( float  value,
float  wt 
) [inline]

float code::WeightedSum::computeResult (  )  const [inline]

Returns MissingData if no valid values were added.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7