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[]currentSetdouble[]previousSetdouble[]testSetbooleanupdated -
Constructor Summary
Constructors Constructor Description SimpleStatistics() -
Method Summary
Modifier and Type Method Description voidenvironmentUpdated(DynamicModelEnvironmentEvent e)double[]getCurrentSet()double[]getError()doublegetMean()intgetN()doublegetRootMeanSquaredError()double[]getSquaredError()double[]getTestSet()booleanisUpdated()voidsetCurrentSet(double[] set)voidsetTestSet(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:
getErrorin interfaceDynamicModelStatistics
-
getMean
public double getMean()- Specified by:
getMeanin interfaceDynamicModelStatistics
-
isUpdated
public boolean isUpdated() -
getN
public int getN()- Specified by:
getNin interfaceDynamicModelStatistics
-
getRootMeanSquaredError
public double getRootMeanSquaredError()- Specified by:
getRootMeanSquaredErrorin interfaceDynamicModelStatistics
-
getSquaredError
public double[] getSquaredError()- Specified by:
getSquaredErrorin interfaceDynamicModelStatistics
-
getTestSet
public double[] getTestSet()- Specified by:
getTestSetin interfaceDynamicModelStatistics
-
setTestSet
public void setTestSet(double[] set)- Specified by:
setTestSetin interfaceDynamicModelStatistics
-
getCurrentSet
public double[] getCurrentSet()- Specified by:
getCurrentSetin interfaceDynamicModelStatistics
-
setCurrentSet
public void setCurrentSet(double[] set)- Specified by:
setCurrentSetin interfaceDynamicModelStatistics
-
environmentUpdated
- Specified by:
environmentUpdatedin interfaceDynamicModelEnvironmentListener- Throws:
NeuroException
-