wGmdh.jGmdh.oldskul.measures
Class Measure
java.lang.Object
wGmdh.jGmdh.oldskul.measures.Measure
- All Implemented Interfaces:
- java.io.Serializable, weka.core.OptionHandler
- Direct Known Subclasses:
- CompoundError, Omitted, Rrse, Sse
public abstract class Measure
- extends java.lang.Object
- implements java.io.Serializable, weka.core.OptionHandler
- See Also:
- Serialized Form
Field Summary |
protected boolean |
debug
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected boolean debug
Measure
public Measure()
calculate
public abstract double calculate(Model model,
double[] modeled,
double[] goal)
throws java.lang.Exception
- Parameters:
model
- in case your measure includes info about model structuremodeled
- goal
-
- Returns:
-
- Throws:
java.lang.Exception
setOptions
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
- Specified by:
setOptions
in interface weka.core.OptionHandler
- Parameters:
options
-
- Throws:
java.lang.Exception
getOptions
public java.lang.String[] getOptions()
- Specified by:
getOptions
in interface weka.core.OptionHandler
- Returns:
listOptions
public java.util.Enumeration listOptions()
- Specified by:
listOptions
in interface weka.core.OptionHandler
setDebug
public void setDebug(boolean b)
getDebug
public boolean getDebug()