com.rapidminer.operator.generator
Class GaussianMixtureFunction

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

public class GaussianMixtureFunction
extends java.lang.Object
implements TargetFunction

Generates a gaussian distribution for all attributes.

Author:
Ingo Mierswa

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.rapidminer.operator.generator.TargetFunction
TargetFunction.FunctionException
 
Constructor Summary
GaussianMixtureFunction()
           
 
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)
          Initializes some gaussian clusters.
 void setLowerArgumentBound(double lower)
          Since circles are used the upper and lower bounds must be the same.
 void setTotalNumberOfAttributes(int number)
          Sets the total number of attributes.
 void setTotalNumberOfExamples(int number)
          Does nothing.
 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

GaussianMixtureFunction

public GaussianMixtureFunction()
Method Detail

setLowerArgumentBound

public void setLowerArgumentBound(double lower)
Since circles are used the upper and lower bounds must be the same.

Specified by:
setLowerArgumentBound 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

init

public void init(RandomGenerator random)
Initializes some gaussian clusters.

Specified by:
init in interface TargetFunction

setTotalNumberOfExamples

public void setTotalNumberOfExamples(int number)
Does nothing.

Specified by:
setTotalNumberOfExamples in interface TargetFunction

setTotalNumberOfAttributes

public void setTotalNumberOfAttributes(int number)
Sets the total number of attributes.

Specified by:
setTotalNumberOfAttributes 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