com.rapidminer.operator.generator
Class SpiralClusteringFunction

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

public class SpiralClusteringFunction
extends java.lang.Object
implements TargetFunction

Generates a data set for two attributes. The data build two spiral functions around the origin up to a maximal radius.

Author:
Ingo Mierswa

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.rapidminer.operator.generator.TargetFunction
TargetFunction.FunctionException
 
Constructor Summary
SpiralClusteringFunction()
           
 
Method Summary
 double calculate(double[] att)
          Calculates the target function on arguments.
 double[] createArguments(int number, RandomGenerator random)
          Creates and returns a number of arguments.
 Attribute getLabel()
          Returns the label attribute.
 void init(RandomGenerator random)
          Does nothing.
 void setLowerArgumentBound(double lower)
          Does nothing.
 void setTotalNumberOfAttributes(int number)
          Does nothing.
 void setTotalNumberOfExamples(int number)
          Sets the total number of examples.
 void setUpperArgumentBound(double upper)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiralClusteringFunction

public SpiralClusteringFunction()
Method Detail

init

public void init(RandomGenerator random)
Does nothing.

Specified by:
init in interface TargetFunction

setTotalNumberOfExamples

public void setTotalNumberOfExamples(int number)
Sets the total number of examples.

Specified by:
setTotalNumberOfExamples in interface TargetFunction

setTotalNumberOfAttributes

public void setTotalNumberOfAttributes(int number)
Does nothing.

Specified by:
setTotalNumberOfAttributes in interface TargetFunction

setLowerArgumentBound

public void setLowerArgumentBound(double lower)
Does nothing.

Specified by:
setLowerArgumentBound in interface TargetFunction

setUpperArgumentBound

public void setUpperArgumentBound(double upper)
Does nothing.

Specified by:
setUpperArgumentBound in interface TargetFunction

getLabel

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

Specified by:
getLabel in interface TargetFunction

calculate

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

Specified by:
calculate in interface TargetFunction
Throws:
TargetFunction.FunctionException

createArguments

public double[] createArguments(int number,
                                RandomGenerator random)
                         throws TargetFunction.FunctionException
Description copied from interface: TargetFunction
Creates and returns a number of arguments.

Specified by:
createArguments in interface TargetFunction
Throws:
TargetFunction.FunctionException


Copyright © 2001-2009 by Rapid-I