org.gersteinlab.regulation.numeric
Class MultivariateFunction

java.lang.Object
  extended by org.gersteinlab.regulation.numeric.MultivariateFunction
Direct Known Subclasses:
DifferentiableMultivariateFunction

public abstract class MultivariateFunction
extends java.lang.Object

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

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

Field Summary
protected  double[] xStored
           
 
Constructor Summary
MultivariateFunction()
           
 
Method Summary
 double f()
          Evaluate the value of the function at the last stored point.
 double f(double[] x)
          Evaluate the value of the function at a point.
 void set(double[] x)
          Store the next point to be evaluated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xStored

protected double[] xStored
Constructor Detail

MultivariateFunction

public MultivariateFunction()
Method Detail

f

public double f(double[] x)
Evaluate the value of the function at a point.

Parameters:
x - The point
Returns:
The value of the polynomial at the point

set

public void set(double[] x)
Store the next point to be evaluated.

Parameters:
x - The point

f

public double f()
Evaluate the value of the function at the last stored point.

Returns:
The value of the function at the point