com.rapidminer.operator.generator
Class MultiClassificationFunction

java.lang.Object
  extended by com.rapidminer.operator.generator.ClassificationFunction
      extended by com.rapidminer.operator.generator.MultiClassificationFunction
All Implemented Interfaces:
TargetFunction

public class MultiClassificationFunction
extends ClassificationFunction

The label is the first class, if the sum of all arguments modulo 2 is 0, it is the second class if the sum modulo 3 is 0 and the third class if the sum modulo 5 is 0. In all other cases the label is the fourth class.

Author:
Ingo Mierswa

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.rapidminer.operator.generator.TargetFunction
TargetFunction.FunctionException
 
Field Summary
 
Fields inherited from class com.rapidminer.operator.generator.ClassificationFunction
lower, upper
 
Constructor Summary
MultiClassificationFunction()
           
 
Method Summary
 double calculate(double[] args)
          Calculates the target function on arguments.
 Attribute getLabel()
          Returns the label attribute.
 
Methods inherited from class com.rapidminer.operator.generator.ClassificationFunction
createArguments, init, setLowerArgumentBound, setTotalNumberOfAttributes, setTotalNumberOfExamples, setUpperArgumentBound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiClassificationFunction

public MultiClassificationFunction()
Method Detail

getLabel

public Attribute getLabel()
Description copied from interface: TargetFunction
Returns the label attribute.

Specified by:
getLabel in interface TargetFunction
Overrides:
getLabel in class ClassificationFunction

calculate

public double calculate(double[] args)
                 throws TargetFunction.FunctionException
Description copied from interface: TargetFunction
Calculates the target function on arguments.

Throws:
TargetFunction.FunctionException


Copyright © 2001-2009 by Rapid-I