c++/EEDB/Tools/Paraclu.cpp
// Ported into the ZENBU Feature and SPStream system: Jessica Severin copyright 2012
Ported into the ZENBU Feature and SPStream system: Jessica Severin copyright 2012
Ported into the ZENBU Feature and SPStream system : Jessica Severin copyright 2012
double  EEDB::Tools::Paraclu::_calc_total_value(FeatureLink *beg, FeatureLink *end) {
  if(beg==NULL) { return 0; }
  FeatureLink  *flink = beg;
  double       totalValue = 0;
  while(flink) {
    totalValue += flink->feature->significance();
    if(flink == end) { break; }
    flink = flink->next;
  }
  return totalValue;
}
double EEDB :: Tools :: Paraclu :: _calc_total_value ( FeatureLink * beg , FeatureLink * end ) { if ( beg == NULL ) { return 0 ; } FeatureLink * flink = beg ; double totalValue = 0 ; while ( flink ) { totalValue += flink -> feature -> significance ( ) ; if ( flink == end ) { break ; } flink = flink -> next ; } return totalValue ; }
Ported into the ZENBU Feature and SPStream system: Jessica Severin copyright 2012
Ported into the ZENBU Feature and SPStream system : Jessica Severin copyright 2012