org.apache.commons.math.analysis
Class MonitoredFunction

java.lang.Object
  extended by org.apache.commons.math.analysis.MonitoredFunction
All Implemented Interfaces:
org.apache.commons.math.analysis.UnivariateRealFunction

public class MonitoredFunction
extends java.lang.Object
implements org.apache.commons.math.analysis.UnivariateRealFunction

Wrapper class for counting functions calls.

Version:
$Revision: 480442 $ $Date: 2006-11-29 08:21:22 +0100 (mer., 29 nov. 2006) $

Constructor Summary
MonitoredFunction(org.apache.commons.math.analysis.UnivariateRealFunction f)
           
 
Method Summary
 int getCallsCount()
           
 void setCallsCount(int callsCount)
           
 double value(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredFunction

public MonitoredFunction(org.apache.commons.math.analysis.UnivariateRealFunction f)
Method Detail

setCallsCount

public void setCallsCount(int callsCount)

getCallsCount

public int getCallsCount()

value

public double value(double x)
             throws org.apache.commons.math.FunctionEvaluationException
Specified by:
value in interface org.apache.commons.math.analysis.UnivariateRealFunction
Throws:
org.apache.commons.math.FunctionEvaluationException


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.