org.encog.mathutil.error
public class ErrorCalculation extends Object
Constructor and Description |
---|
ErrorCalculation() |
Modifier and Type | Method and Description |
---|---|
double |
calculate()
Returns the root mean square error for a complete training set.
|
double |
calculateESS()
Calculate the error with SSE.
|
double |
calculateMSE()
Calculate the error with MSE.
|
double |
calculateRMS()
Calculate the error with RMS.
|
static ErrorCalculationMode |
getMode()
get the error calculation mode, this is static and therefore global to
all Enocg training.
|
void |
reset()
Reset the error accumulation to zero.
|
static void |
setMode(ErrorCalculationMode theMode)
Set the error calculation mode, this is static and therefore global to
all Enocg training.
|
void |
updateError(double[] actual,
double[] ideal,
double significance)
Called to update for each number that should be checked.
|
void |
updateError(double actual,
double ideal)
Update the error with single values.
|
public static ErrorCalculationMode getMode()
public static void setMode(ErrorCalculationMode theMode)
theMode
- The new mode.public final double calculate()
public final double calculateMSE()
public final double calculateESS()
public final double calculateRMS()
public final void reset()
public final void updateError(double actual, double ideal)
actual
- The actual value.ideal
- The ideal value.public final void updateError(double[] actual, double[] ideal, double significance)
actual
- The actual number.ideal
- The ideal number.Copyright © 2014. All Rights Reserved.