Changeset 420


Ignore:
Timestamp:
07/16/12 13:17:41 (12 years ago)
Author:
sherbold
Message:
  • fixed bug with possible NaN values in coverage calculation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/coverage/CoverageCalculatorProcess.java

    r331 r420  
    160160                double weight = 0.0; 
    161161                for (List<? extends Event<?>> subSeq : containedSubSeqs) { 
    162                         weight += subSeqWeights.get(subSeq); 
     162                        Double curWeight = subSeqWeights.get(subSeq); 
     163                        if( curWeight!=null ) { 
     164                                weight += curWeight; 
     165                        } 
    163166                } 
    164167                return weight; 
Note: See TracChangeset for help on using the changeset viewer.