com.rapidminer.operator.generator
Class DrillerOscillationFunction

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

public class DrillerOscillationFunction
extends java.lang.Object
implements TargetFunction

Generator for an artificial audio data set (based on real-world data from drilling processes).

Author:
Sebastian Land

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.rapidminer.operator.generator.TargetFunction
TargetFunction.FunctionException
 
Constructor Summary
DrillerOscillationFunction()
           
 
Method Summary
 double calculate(double[] args)
          Calculates the target function on arguments.
 double[] createArguments(int dimension, RandomGenerator random)
          Creates and returns a number of arguments.
 Attribute getLabel()
          Returns the label attribute.
 void init(RandomGenerator random)
          Should be called before the data is created.
 void setLowerArgumentBound(double lower)
          Sets the lower bound for the arguments.
 void setTotalNumberOfAttributes(int number)
          Sets the maximal number of attributes.
 void setTotalNumberOfExamples(int number)
          Sets the maximal number of examples.
 void setUpperArgumentBound(double upper)
          Sets the upper bound for the arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrillerOscillationFunction

public DrillerOscillationFunction()
Method Detail

calculate

public double calculate(double[] args)
                 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 dimension,
                                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

getLabel

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

Specified by:
getLabel in interface TargetFunction

init

public void init(RandomGenerator random)
Description copied from interface: TargetFunction
Should be called before the data is created.

Specified by:
init in interface TargetFunction

setLowerArgumentBound

public void setLowerArgumentBound(double lower)
Description copied from interface: TargetFunction
Sets the lower bound for the arguments.

Specified by:
setLowerArgumentBound in interface TargetFunction

setTotalNumberOfAttributes

public void setTotalNumberOfAttributes(int number)
Description copied from interface: TargetFunction
Sets the maximal number of attributes. This might be used by some target functions in order to create proper arguments.

Specified by:
setTotalNumberOfAttributes in interface TargetFunction

setTotalNumberOfExamples

public void setTotalNumberOfExamples(int number)
Description copied from interface: TargetFunction
Sets the maximal number of examples. This might be used by some target functions in order to create proper arguments.

Specified by:
setTotalNumberOfExamples in interface TargetFunction

setUpperArgumentBound

public void setUpperArgumentBound(double upper)
Description copied from interface: TargetFunction
Sets the upper bound for the arguments.

Specified by:
setUpperArgumentBound in interface TargetFunction


Copyright © 2001-2009 by Rapid-I