wGmdh.jGmdh.oldskul.measures
Class CompoundError

java.lang.Object
  extended by wGmdh.jGmdh.oldskul.measures.Measure
      extended by wGmdh.jGmdh.oldskul.measures.CompoundError
All Implemented Interfaces:
java.io.Serializable, weka.core.OptionHandler, weka.core.TechnicalInformationHandler

public class CompoundError
extends Measure
implements weka.core.TechnicalInformationHandler

error = cw*(Errs/Errs0)^2 + (1-cw)*(Texe-Texe0) To be used with jGMDH.raw.oldskul.ModelClassic. To use it with jGMDH.raw.hybrid.ModelMultiple you will need to calculate number of additions and multiplications in the polynomial separately for each ModelMultiple because they need not be the same.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class wGmdh.jGmdh.oldskul.measures.Measure
debug
 
Constructor Summary
CompoundError()
           
 
Method Summary
 double calculate(Model model, double[] modeled, double[] goal)
           
 void calculateSinglePolynomialExecutionTime()
          In our 2 variable polynomial we have 5 additions and 5 multiplications
 int countSubmodels(Model model)
           
 double getAdditionTime()
           
 double getCw()
           
 double getExecutionTimeThreshold()
           
 double getMultiplicationTime()
           
 java.lang.String[] getOptions()
           
 double getRrseThreshold()
           
 double getSinglePolynomialexecutionTime()
           
 weka.core.TechnicalInformation getTechnicalInformation()
           
 java.lang.String globalInfo()
          Returns a string describing classifier
 java.util.Enumeration listOptions()
           
 void setAdditionTime(double additionTime)
           
 void setCw(double cw)
           
 void setExecutionTimeThreshold(double executionTimeThreshold)
           
 void setMultiplicationTime(double multiplicationTime)
           
 void setOptions(java.lang.String[] options)
           
 void setRrseThreshold(double rrseThreshold)
           
 
Methods inherited from class wGmdh.jGmdh.oldskul.measures.Measure
getDebug, setDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundError

public CompoundError()
Method Detail

countSubmodels

public int countSubmodels(Model model)

calculate

public double calculate(Model model,
                        double[] modeled,
                        double[] goal)
                 throws java.lang.Exception
Specified by:
calculate in class Measure
Parameters:
model - in case your measure includes info about model structure
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
Overrides:
setOptions in class Measure
Parameters:
options -
Throws:
java.lang.Exception

getOptions

public java.lang.String[] getOptions()
Specified by:
getOptions in interface weka.core.OptionHandler
Overrides:
getOptions in class Measure
Returns:

listOptions

public java.util.Enumeration listOptions()
Specified by:
listOptions in interface weka.core.OptionHandler
Overrides:
listOptions in class Measure

getCw

public double getCw()
Returns:
the cw

setCw

public void setCw(double cw)
Parameters:
cw - the cw to set

getExecutionTimeThreshold

public double getExecutionTimeThreshold()
Returns:
the executionTimeThreshold

setExecutionTimeThreshold

public void setExecutionTimeThreshold(double executionTimeThreshold)
Parameters:
executionTimeThreshold - the executionTimeThreshold to set

getRrseThreshold

public double getRrseThreshold()
Returns:
the rrseThreshold

setRrseThreshold

public void setRrseThreshold(double rrseThreshold)
Parameters:
rrseThreshold - the rrseThreshold to set

getMultiplicationTime

public double getMultiplicationTime()
Returns:
the multiplicationTime

setMultiplicationTime

public void setMultiplicationTime(double multiplicationTime)
Parameters:
multiplicationTime - the multiplicationTime to set

getAdditionTime

public double getAdditionTime()
Returns:
the additionTime

setAdditionTime

public void setAdditionTime(double additionTime)
Parameters:
additionTime - the additionTime to set

getSinglePolynomialexecutionTime

public double getSinglePolynomialexecutionTime()
Returns:
the singlePolynomialexecutionTime

calculateSinglePolynomialExecutionTime

public void calculateSinglePolynomialExecutionTime()
In our 2 variable polynomial we have 5 additions and 5 multiplications


globalInfo

public java.lang.String globalInfo()
Returns a string describing classifier

Returns:
a description suitable for displaying in the explorer/experimenter gui

getTechnicalInformation

public weka.core.TechnicalInformation getTechnicalInformation()
Specified by:
getTechnicalInformation in interface weka.core.TechnicalInformationHandler