de.unidu.is.util
Class LogFunction

java.lang.Object
  extended byde.unidu.is.util.Function
      extended byde.unidu.is.util.LearnableFunction
          extended byde.unidu.is.util.LogFunction

public class LogFunction
extends LearnableFunction

The logarithm function.

Since:
2004-10-25
Version:
$Revision: 1.4 $, $Date: 2005/02/28 22:27:55 $
Author:
Henrik Nottelmann

Field Summary
 
Fields inherited from class de.unidu.is.util.Function
parameters
 
Constructor Summary
LogFunction()
           
 
Method Summary
 double apply(double x)
          Apply the value x onto the function, and return the function value.
 java.lang.String getFunction()
          Returns the function in its textual representation.
 java.lang.String[] getParameterNames()
          Returns the parameter names which can be learned.
 
Methods inherited from class de.unidu.is.util.LearnableFunction
learn
 
Methods inherited from class de.unidu.is.util.Function
getParameter, getParameters, init, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFunction

public LogFunction()
Method Detail

apply

public double apply(double x)
Description copied from class: Function
Apply the value x onto the function, and return the function value.

Specified by:
apply in class Function
Parameters:
x - value to apply
Returns:
result for x

getParameterNames

public java.lang.String[] getParameterNames()
Description copied from class: LearnableFunction
Returns the parameter names which can be learned.

Specified by:
getParameterNames in class LearnableFunction
Returns:
parameter names

getFunction

public java.lang.String getFunction()
Description copied from class: LearnableFunction
Returns the function in its textual representation.

Specified by:
getFunction in class LearnableFunction
Returns:
textual representation of this function