Class LeastDifferenceSelector
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationSelector
net.simplace.sim.control.selectors.WeightedLeastDifferenceSelector
net.simplace.sim.control.selectors.LeastDifferenceSelector
- All Implemented Interfaces:
FWSimFieldContainer
- Direct Known Subclasses:
LeastSquareSelector
Selects the simulation from a project, which fits best to some error method:
Configuration
The user has to specify
- the error method cMode
- the two variables, that will be compared (normally observed and simulated data) as cObserved1 and cSimulated1
- the frequency at which the selector compares the values
Configuration in project file is given as
| <selector id="LeastDifference" class="net.simplace.sim.control.selectors.LeastDifferenceSelector" frequence="YEARLY" > | <input id="cMode">RRMSE</input> | <input id="cObserved1" mode="MAX" source="data.obs"/> | <input id="cSimulated1" mode="MAX" source="model.sim"/> | </selector>
Output
- id of selected simulation as a one size CHARARRAY selectedsimulations
- error of selected simulation ErrorValue
- errors of all simulations ErrorValues as DOUBLEARRAY
- the error method ErrorMethod used
Notice
This selector uses the WeightedLeastDifferenceSelector with only one variable and weight 1 to calculate errors and select the simulation.
Error methods
- Bias - mean error
- SignedBias - mean error, selects the smallest signed bias
- MRE - mean relative error
- MAE - mean absolute error
- RMAE - relative mean absolute error
- MSE - mean squared error
- RMSE - root mean squared error
- RRMSE - relative root mean squared error
- SMAPE - symmetric mean absolute percentage error
- EF - model efficiency
- r - Correlation Coefficient
- rc - Concordance Correlation Coefficient
- index - Agreement Index
- NONE - Void Error Calculator
- Author:
- G. Krauss, Andreas Enders
- See Also:
-
Field Summary
Fields inherited from class WeightedLeastDifferenceSelector
cMode, cNumberOfVariables, cWeight, errorCalculator, ErrorMethod, ErrorValue, ErrorValues, IndividualErrorValues, iObserved, iSimulated, maxnumber, number, NumberOfValues, weightsumFields inherited from class FWSimulationSelector
iFrequence, iGlobalModeSimulationIDMap, iSelectStatementFields inherited from class FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iIdentifier, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap -
Constructor Summary
ConstructorsConstructorDescriptionLeastDifferenceSelector(org.jdom2.Element aSimulationSelectorElement, FWSimSession aSession) -
Method Summary
Modifier and TypeMethodDescriptionHashMap<String, FWSimVariable<?>> Creates the inputs of the weighted selector for a single variable pair, with the weightcWeight1defaulting to 1.Methods inherited from class WeightedLeastDifferenceSelector
init, selectMethods inherited from class FWSimulationSelector
createSelectStatement, createSimulationSelector, createSimulationSelector, selectSimulationsMethods inherited from class FWSimulationControlContainer
addProcessTime, addVariable, checkCondition, evaluate, getContentType, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVarMap, isConditionCheck, readInputCalAndConstraint, removeVariable, setPropertyValue, toXML
-
Constructor Details
-
LeastDifferenceSelector
- Parameters:
aSimulationSelectorElement- theselectorelementaSession- the session
-
-
Method Details
-
createVariables
Creates the inputs of the weighted selector for a single variable pair, with the weightcWeight1defaulting to 1.- Specified by:
createVariablesin interfaceFWSimFieldContainer- Overrides:
createVariablesin classWeightedLeastDifferenceSelector- Returns:
- the variables, keyed by name
- See Also:
-