Class DefaultSimStatistic
java.lang.Object
net.simplace.sim.io.output.FWSimStatisticVariable
net.simplace.sim.io.output.statistic.DefaultSimStatistic
Default statistic: the mode names an error calculation method of
ErrorCalculationFactory (e.g.
MODELEFFICIENCY). Pairs where one value is missing are skipped.- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSimStatistic(org.jdom2.Element aStatElement, FWSimOutputAdapter aFwSimOutputAdapter) -
Method Summary
Methods inherited from class FWSimStatisticVariable
calculateStatistics, createStatistic, getDescription, getStatID, getStatMode, getStatObsVarID, getStatSimVarID, getUnit, toXML
-
Constructor Details
-
DefaultSimStatistic
- Parameters:
aStatElement- thestatelementaFwSimOutputAdapter- the output adapter the statistic belongs to
-
-
Method Details
-
calculate
Adds all pairs with both values present (numbers of any type, also mixed) to the error calculation method of the mode and returns its value.- Specified by:
calculatein classFWSimStatisticVariable- Parameters:
aObservedValues- observed valuesaSimulatedValues- simulated values (same length and order)aStatMode- the mode of the statistic- Returns:
- the calculated value
- See Also:
-