20 #ifndef __GA_WeightedSum__
21 #define __GA_WeightedSum__
55 myMaxWeight =
SYSmax(myMaxWeight, myCurrentWeight);
56 myCurrentWeight = weight;
57 myTotalWeight += weight;
bool getIsMaxWeight() const
A convenince method for conditional copying of the maximum weight.
int getPartialIndex() const
fpreal getCurrentWeight() const
Get the current weight to sum.
Context to keep track of weighted sums.
fpreal getTotalWeight() const
Get the sum of the weights for all iterations (for normalization)
void advance(fpreal weight)
int getIterationCount() const