public double getAggregatedCountValue(final Id<Link> linkfilter) { Iterator<CountSimComparison> csc_it = this.countSimComparisonLinkMap.get(linkfilter).iterator(); double countValue=0.0; while (csc_it.hasNext()) { CountSimComparison csc= csc_it.next(); countValue+=csc.getCountValue(); } return countValue; }
buffer.append(NetworkFeatureFactory.STARTP); buffer.append(COUNTVALUE); buffer.append(csc.getCountValue()); buffer.append(NetworkFeatureFactory.ENDP); buffer.append(NetworkFeatureFactory.STARTP);
buffer.append(NetworkFeatureFactory.STARTP); buffer.append(COUNTVALUE); buffer.append(csc.getCountValue()); buffer.append(NetworkFeatureFactory.ENDP); buffer.append(NetworkFeatureFactory.STARTP);
out.write(this.numberFormat.format(csc.getSimulationValue())); out.write(SEPARATOR); out.write(this.numberFormat.format(csc.getCountValue())); out.write(SEPARATOR); out.write(this.numberFormat.format(csc.calculateRelativeError()));
this.meanAbsError[hour] += Math.abs(cc.getSimulationValue() - cc.getCountValue()); this.meanBias[hour] += cc.getSimulationValue() - cc.getCountValue();
public void add2LoadCurveDataSets(final CountSimComparison cc ) { String matsim_series = "Sim Volumes"; String real_series = "Count Volumes"; String h=Integer.toString(cc.getHour()); this.dataset0.addValue(cc.getSimulationValue(),matsim_series, h); this.dataset0.addValue(cc.getCountValue(),real_series,h); //relative error // TRRE: this.dataset1.addValue(cc.calculateRelativeError(),"Signed Rel. Error",Integer.toString(cc.getHour())); }//add2LoadCurveDataSets
.createPoint(point)); if (csc.getSimulationValue() > csc.getCountValue()) { if (csc.getSimulationValue() < csc.getCountValue() * 1.5) { placemark.setStyleUrl(this.greenCrossStyle.getId()); } else if (csc.getSimulationValue() < csc.getCountValue() * 2) { placemark.setStyleUrl(this.yellowCrossStyle.getId()); } else { if (csc.getSimulationValue() > csc.getCountValue() * 0.75) { placemark.setStyleUrl("#greenMinusStyle"); } else if (csc.getSimulationValue() > csc.getCountValue() * 0.5) { placemark.setStyleUrl("#yellowMinusStyle"); } else {
int hour = cc.getHour() - 1; listRel[hour].add(cc.calculateNormalizedRelativeError() * 100); listAbs[hour].add(cc.getSimulationValue() - cc.getCountValue());
int hour = cc.getHour() - 1; listRel[hour].add(cc.calculateRelativeError() * 100); listAbs[hour].add(cc.getSimulationValue() - cc.getCountValue());
placemark.setAbstractGeometryGroup(this.kmlObjectFactory.createPoint(point)); if (csc.getSimulationValue() > csc.getCountValue()) { if (csc.getSimulationValue() < csc.getCountValue() * 1.5) { placemark.setStyleUrl(this.greenCrossStyle.getId()); else if (csc.getSimulationValue() < csc.getCountValue() * 2) { placemark.setStyleUrl(this.yellowCrossStyle.getId()); if (csc.getSimulationValue() > csc.getCountValue() * 0.75) { placemark.setStyleUrl("#greenMinusStyle"); } else if (csc.getSimulationValue() > csc.getCountValue() * 0.5) { placemark.setStyleUrl("#yellowMinusStyle"); } else { placemark.setStyleUrl(this.greenCircleStyle.getId()); } else if (normalizedRelativeError <= 0.25) { if (csc.getSimulationValue() > csc.getCountValue()) placemark.setStyleUrl(this.greenCrossStyle.getId()); else placemark.setStyleUrl(this.greenMinusStyle.getId()); } else if (normalizedRelativeError <= 0.50) { if (csc.getSimulationValue() > csc.getCountValue()) placemark.setStyleUrl(this.yellowCrossStyle.getId()); else placemark.setStyleUrl(this.yellowMinusStyle.getId()); } else if (normalizedRelativeError <= 1.00) { if (csc.getSimulationValue() > csc.getCountValue()) placemark.setStyleUrl(this.redCrossStyle.getId()); else placemark.setStyleUrl(this.redMinusStyle.getId()); } else {
if (cc.getCountValue() > 0.0 && cc.getSimulationValue() > 0.0) { realVal = cc.getCountValue(); simVal = cc.getSimulationValue(); series.add(realVal, simVal); + ", Sim: " + simVal)); } else { realVal = Math.max(1.0, cc.getCountValue()); simVal = Math.max(1.0, cc.getSimulationValue()); series_outliers.add(realVal, simVal);
if (cc.getCountValue()>0.0 && cc.getSimulationValue()>0.0) { realVal = cc.getCountValue(); simVal=cc.getSimulationValue(); series.add(realVal,simVal); realVal=Math.max(1.0, cc.getCountValue()); simVal=Math.max(1.0, cc.getSimulationValue()); series_outliers.add(realVal, simVal);
simpleWriter.write('\t'); double countValue = count.getCountValue(); double simValue = count.getSimulationValue();