org.apache.commons.math3.analysis
Class MonitoredFunction

java.lang.Object
  extended by org.apache.commons.math3.analysis.MonitoredFunction
All Implemented Interfaces:
UnivariateFunction

public class MonitoredFunction
extends Object
implements UnivariateFunction

Wrapper class for counting functions calls.

Version:
$Id: MonitoredFunction.java 1244107 2012-02-14 16:17:55Z erans $

Constructor Summary
MonitoredFunction(UnivariateFunction 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(UnivariateFunction f)
Method Detail

setCallsCount

public void setCallsCount(int callsCount)

getCallsCount

public int getCallsCount()

value

public double value(double x)
Specified by:
value in interface UnivariateFunction


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