com.rapidminer.operator.generator
Class SincFunction

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

public class SincFunction
extends RegressionFunction

The sinc function on R^n for n >= 1 The Label is f(x) = sin(x) / ||x||, if ||x|| != 0, and 0 else.

Author:
Piotr Kasprzak

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.RegressionFunction
numberOfAttributes, numberOfExamples
 
Constructor Summary
SincFunction()
           
 
Method Summary
 double calculate(double[] att)
          Calculates the target function on arguments.
 double norm_l2(double[] vector)
           
 
Methods inherited from class com.rapidminer.operator.generator.RegressionFunction
createArguments, getGeneratedMetaData, getLabel, 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

SincFunction

public SincFunction()
Method Detail

norm_l2

public double norm_l2(double[] vector)

calculate

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



Copyright © 2001-2009 by Rapid-I