Class AbsoluteDifferenceLog

    • Constructor Detail

      • AbsoluteDifferenceLog

        public AbsoluteDifferenceLog()
    • Method Detail

      • calculate

        public double calculate​(double[] obs,
                                double[] sim,
                                double missingValue)
        Description copied from interface: ObjectiveFunction
        Calculates the objective function value based on the given simulated and observed values. If measuredValue[i] <= missingValue (where 0<=i
        Specified by:
        calculate in interface ObjectiveFunction
        Parameters:
        obs - the observed values
        sim - the simulated values
        missingValue - 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: ObjectiveFunction
        This method tells you if it is good for the objective function value to be large.
        Specified by:
        positiveDirection in interface ObjectiveFunction
        Returns:
        true if a greater objective function value is considered better. false is returned otherwise.