Package net.simplace.sim.util.statistics
Klasse ErrorCalculationMethod
java.lang.Object
net.simplace.sim.util.statistics.ErrorCalculationMethod
- Bekannte direkte Unterklassen:
AgreementIndex,Bias,ConcordanceCorrelationCoefficient,CorrelationCoefficient,EF,MAE,MRE,MSE,RMAE,RMSE,RRMSE,SMAPE,VoidErrorCalculator
Defines the abstract functions/procedures that a class needs to implement
in order to be usable as an error calculation method by the LeastDifferenceSelector
- Autor:
- Gunther Krauss
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract voidaddDataPair(double observed, double calculated) Adds a pair of observed and calculated data to the listGets the full name or a short description of the error methodabstract StringgetLabel()Gets the label of the calculation methodabstract doublegetValue()Calculates the (error)value from the list of pairsdoubleReturns the value that is considered worst by the error calculation methodvoidinit()Initializes the calculation methodabstract booleanisBetter(double better, double worse) Checks if the first value is better than the second value with respect to the calcualtion method.
-
Felddetails
-
count
protected int count -
sum
protected double sum
-
-
Konstruktordetails
-
ErrorCalculationMethod
public ErrorCalculationMethod()
-
-
Methodendetails
-
init
public void init()Initializes the calculation method -
getWorstValue
public double getWorstValue()Returns the value that is considered worst by the error calculation method- Gibt zurück:
- worstValue
-
addDataPair
public abstract void addDataPair(double observed, double calculated) Adds a pair of observed and calculated data to the list- Parameter:
observed-calculated-
-
getValue
public abstract double getValue()Calculates the (error)value from the list of pairs- Gibt zurück:
- errorvalue
-
isBetter
public abstract boolean isBetter(double better, double worse) Checks if the first value is better than the second value with respect to the calcualtion method.- Parameter:
better-worse-- Gibt zurück:
- true if first value is better than second
-
getLabel
Gets the label of the calculation method- Gibt zurück:
- label
-
getDescription
Gets the full name or a short description of the error method- Gibt zurück:
- description or full name
-