Package oms3.ngmf.util.cosu.luca.of
Class AbsoluteDifference
- java.lang.Object
-
- oms3.ngmf.util.cosu.luca.of.AbsoluteDifference
-
- All Implemented Interfaces:
ObjectiveFunction
public class AbsoluteDifference extends Object implements ObjectiveFunction
- Author:
- Makiko
-
-
Constructor Summary
Constructors Constructor Description AbsoluteDifference()
-
Method Summary
All Methods Instance Methods Concrete 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
public double calculate(double[] obs, double[] sim, double missingValue)Description copied from interface:ObjectiveFunctionCalculates the objective function value based on the given simulated and observed values. If measuredValue[i] <= missingValue (where 0<=i- Specified by:
calculatein interfaceObjectiveFunction- 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
public boolean positiveDirection()
Description copied from interface:ObjectiveFunctionThis method tells you if it is good for the objective function value to be large.- Specified by:
positiveDirectionin interfaceObjectiveFunction- Returns:
- true if a greater objective function value is considered better. false is returned otherwise.
-
-