Class FitnessCriteria
java.lang.Object
llnl.gnem.core.util.MathFunctions.FitnessCriteria
- Author:
- matzel1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Double
CoefficientOfVariation
(float[] data) the coefficient of variation (CV) is a normalized measure of dispersion of a probability distribution.static Double
CVRMSD
(double[] data, double[] reference) The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE)) RMS = SUM((data - reference)^2) / SUM(reference^2)static Double
CVRMSD
(float[] data, float[] reference) The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE)) RMS = SUM((data - reference)^2) / SUM(reference^2)static Double
The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE))static float[]
Differential
(float[] data, float[] reference) static Float
MeanDifference
(float[] data, float[] reference) The Mean Difference fitness criteria MD = SUM(data - reference) / SUM(reference)static Double
NRMSD
(float[] data, float[] reference) Normalized Root Mean Square Difference (NRMSD) RMSD/ (xmax - xmin)static Double
RMSD
(float[] data, float[] reference) Root Mean Square Difference (aka Root Mean Square Deviation (RMSD) or Root Mean Square Error (RMSE))static Double
SumSquareDifference
(double[] data, double[] reference) Calculate the sum of the square of the differences between two series SUM((data - reference)^2)static Double
SumSquareDifference
(float[] data, float[] reference) Calculate the sum of the square of the differences between two series SUM((data - reference)^2)static Double
SumSquares
(double[] data) Calculate the sum of the squares of the data seriesstatic Double
SumSquares
(float[] data) Calculate the sum of the squares of the data series
-
Constructor Details
-
FitnessCriteria
public FitnessCriteria()
-
-
Method Details
-
Differential
public static float[] Differential(float[] data, float[] reference) - Parameters:
data
-reference
-- Returns:
-
SumSquareDifference
Calculate the sum of the square of the differences between two series SUM((data - reference)^2)- Parameters:
data
- - the first series as an array of doublesreference
- - the reference series as an array of doubles- Returns:
- the sum of the squares of the differences
-
SumSquareDifference
Calculate the sum of the square of the differences between two series SUM((data - reference)^2)- Parameters:
data
- - the first series as an array of floatsreference
- - the reference series as an array of floats- Returns:
- the sum of the squares of the differences
-
SumSquares
Calculate the sum of the squares of the data series- Parameters:
data
- - an array of doubles- Returns:
- the sum of the squares of the series (NOTE unnormalized)
-
SumSquares
Calculate the sum of the squares of the data series- Parameters:
data
- - an array of floats- Returns:
- the sum of the squares of the series (NOTE unnormalized)
-
RMSD
Root Mean Square Difference (aka Root Mean Square Deviation (RMSD) or Root Mean Square Error (RMSE))- Parameters:
data
- - a data series as a float arrayreference
- - a reference series as a float array- Returns:
- the RMSD of the two series
-
NRMSD
Normalized Root Mean Square Difference (NRMSD) RMSD/ (xmax - xmin)- Parameters:
data
- - a data series as a float arrayreference
- - a reference series as a float array- Returns:
- the Normalized RMSD of the two series
-
CVRMSD
The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE)) RMS = SUM((data - reference)^2) / SUM(reference^2)- Parameters:
data
- - an array of floatsreference
- - an array of floats (must be the same length as the data array)- Returns:
- a single float measure of the RMS fit
-
CVRMSD
The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE)) RMS = SUM((data - reference)^2) / SUM(reference^2)- Parameters:
data
- - an array of doublesreference
- - an array of doubles (must be the same length as the data array)- Returns:
- a single double valued measure of the RMS fit
-
CVRMSD
The Coefficient of Variation of the Root-Mean-Square Difference (aka CV(RMSD) or CV(RMSE))- Parameters:
dataMap
- a Map of data and reference values to be compared note that the Map key is not used in the RMS fit procedure- Returns:
- the single float valued measure of the RMS fit
-
MeanDifference
The Mean Difference fitness criteria MD = SUM(data - reference) / SUM(reference)- Parameters:
data
- - an array of floatsreference
- - an array of floats (must be the same length as the data array)- Returns:
- a single float measure of the MD fit
-
CoefficientOfVariation
the coefficient of variation (CV) is a normalized measure of dispersion of a probability distribution. AKA unitized risk or variation coefficient CV = stdev / mean This is only defined for non-zero mean, and is most useful for variables that are always positive.- Parameters:
data
- - an array of floats- Returns:
- CV = stdev(data) / mean(data)
-