extension/src/main/java/org/justinnk/masonssa/extension/ssa/OptimizedDirectMethod.java
/** Recalculate the sum of rates. This can be used to correct numerical errors. */
Recalculate the sum of rates. This can be used to correct numerical errors.
Recalculate the sum of rates . This can be used to correct numerical errors .
public void recalculateRateSum() {
    this.rateSum = 0;
    for (Action action : Action.ActionInstances) {
      if (action.evaluateCondition()) {
        double rate = action.calculateRate();
        if (rate > 0) {
          this.rateSum += rate;
        }
      }
    }
  }
public void recalculateRateSum ( ) { this . rateSum = 0 ; for ( Action action : Action . ActionInstances ) { if ( action . evaluateCondition ( ) ) { double rate = action . calculateRate ( ) ; if ( rate > 0 ) { this . rateSum += rate ; } } } }
Recalculate the sum of rates.
Recalculate the sum of rates .
// System.out.println("adding " + action + "s " + rate);