Package oms3
Interface ObjectiveFunction
-
- All Known Implementing Classes:
AbsoluteDifference,AbsoluteDifferenceLog,NashSutcliffe,NormalizedRMSE,PearsonsCorrelation
public interface ObjectiveFunctionObjective Function. Interface for providing a objective function implementation.- Author:
- makiko, od
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecalculate(double[] obs, double[] sim, double missingValue)Calculates the objective function value based on the given simulated and observed values.booleanpositiveDirection()This method tells you if it is good for the objective function value to be large.
-
-
-
Method Detail
-
calculate
double calculate(double[] obs, double[] sim, double missingValue)Calculates the objective function value based on the given simulated and observed values. If measuredValue[i] <= missingValue (where 0<=i- Parameters:
obs- the observed valuessim- the simulated valuesmissingValue- the missing value that indicates a observed or/and simulated value is missing- Returns:
- the objective function value.
-
positiveDirection
boolean positiveDirection()
This method tells you if it is good for the objective function value to be large.- Returns:
- true if a greater objective function value is considered better. false is returned otherwise.
-
-