Package mgui.neuro.stats
Class SimpleStatistics
java.lang.Object
mgui.neuro.stats.SimpleStatistics
- All Implemented Interfaces:
DynamicModelEnvironmentListener
,DynamicModelStatistics
public class SimpleStatistics extends java.lang.Object implements DynamicModelStatistics
-
Field Summary
Fields Modifier and Type Field Description double[]
currentSet
double[]
previousSet
double[]
testSet
boolean
updated
-
Constructor Summary
Constructors Constructor Description SimpleStatistics()
-
Method Summary
Modifier and Type Method Description void
environmentUpdated(DynamicModelEnvironmentEvent e)
double[]
getCurrentSet()
double[]
getError()
double
getMean()
int
getN()
double
getRootMeanSquaredError()
double[]
getSquaredError()
double[]
getTestSet()
boolean
isUpdated()
void
setCurrentSet(double[] set)
void
setTestSet(double[] set)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
testSet
public double[] testSet -
currentSet
public double[] currentSet -
previousSet
public double[] previousSet -
updated
public boolean updated
-
-
Constructor Details
-
SimpleStatistics
public SimpleStatistics()
-
-
Method Details
-
getError
public double[] getError()- Specified by:
getError
in interfaceDynamicModelStatistics
-
getMean
public double getMean()- Specified by:
getMean
in interfaceDynamicModelStatistics
-
isUpdated
public boolean isUpdated() -
getN
public int getN()- Specified by:
getN
in interfaceDynamicModelStatistics
-
getRootMeanSquaredError
public double getRootMeanSquaredError()- Specified by:
getRootMeanSquaredError
in interfaceDynamicModelStatistics
-
getSquaredError
public double[] getSquaredError()- Specified by:
getSquaredError
in interfaceDynamicModelStatistics
-
getTestSet
public double[] getTestSet()- Specified by:
getTestSet
in interfaceDynamicModelStatistics
-
setTestSet
public void setTestSet(double[] set)- Specified by:
setTestSet
in interfaceDynamicModelStatistics
-
getCurrentSet
public double[] getCurrentSet()- Specified by:
getCurrentSet
in interfaceDynamicModelStatistics
-
setCurrentSet
public void setCurrentSet(double[] set)- Specified by:
setCurrentSet
in interfaceDynamicModelStatistics
-
environmentUpdated
- Specified by:
environmentUpdated
in interfaceDynamicModelEnvironmentListener
- Throws:
NeuroException
-