org.gersteinlab.regulation.numeric
Class DifferentiableFunction

java.lang.Object
  extended by org.gersteinlab.regulation.numeric.Function
      extended by org.gersteinlab.regulation.numeric.DifferentiableFunction
Direct Known Subclasses:
DoublyDifferentiableFunction

public abstract class DifferentiableFunction
extends Function

        A class that represents a differentiable univariate real function. Each
        inherited class should implement at least one of df(double) and df().
        

Version:
1.0 (August 29, 2008)
        Change History:
        1.0     - Initial version
        
Author:
Kevin Yuk-Lap Yip

Field Summary
 
Fields inherited from class org.gersteinlab.regulation.numeric.Function
xStored
 
Constructor Summary
DifferentiableFunction()
           
 
Method Summary
 double df()
          Evaluate the first derivative of the function at the stored point.
 double df(double x)
          Evaluate the first derivative of the function at a point.
 
Methods inherited from class org.gersteinlab.regulation.numeric.Function
f, f, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferentiableFunction

public DifferentiableFunction()
Method Detail

df

public double df(double x)
Evaluate the first derivative of the function at a point.

Parameters:
x - The point
Returns:
The first derivative of the function at the point

df

public double df()
Evaluate the first derivative of the function at the stored point.

Returns:
The first derivative of the function at the point