wGmdh.jGmdh.oldskul.measures
Class Measure

java.lang.Object
  extended by 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
           
 
Constructor Summary
Measure()
           
 
Method Summary
abstract  double calculate(Model model, double[] modeled, double[] goal)
           
 boolean getDebug()
           
 java.lang.String[] getOptions()
           
 java.util.Enumeration listOptions()
           
 void setDebug(boolean b)
           
 void setOptions(java.lang.String[] options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected boolean debug
Constructor Detail

Measure

public Measure()
Method Detail

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 structure
modeled -
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()