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 Object
implements org.apache.commons.math.analysis.UnivariateRealFunction

Wrapper class for counting functions calls.

Version:
$Revision: 786927 $ $Date: 2009-06-20 19:37:47 -0400 (Sat, 20 Jun 2009) $

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-2011 Apache Software Foundation. All Rights Reserved.