org.gersteinlab.regulation.numeric
Class DoublyDifferentiableFunction

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

public abstract class DoublyDifferentiableFunction
extends DifferentiableFunction

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

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
DoublyDifferentiableFunction()
           
 
Method Summary
 double d2f()
          Evaluate the second derivative of the function at the stored point.
 double d2f(double x)
          Evaluate the second derivative of the function at a point.
 
Methods inherited from class org.gersteinlab.regulation.numeric.DifferentiableFunction
df, df
 
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

DoublyDifferentiableFunction

public DoublyDifferentiableFunction()
Method Detail

d2f

public double d2f(double x)
Evaluate the second derivative of the function at a point.

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

d2f

public double d2f()
Evaluate the second derivative of the function at the stored point.

Returns:
The second derivative of the function at the point