org.ddogleg.optimization
Class CallCounterStoS
- java.lang.Object
-
- org.ddogleg.optimization.CallCounterStoS
-
- All Implemented Interfaces:
- FunctionStoS
public class CallCounterStoS extends java.lang.Object implements FunctionStoS
Wraps around a function and counts the number of times it processes an input.
-
-
Field Summary
Fields Modifier and Type Field and Description intcountFunctionStoSfunc
-
Constructor Summary
Constructors Constructor and Description CallCounterStoS(FunctionStoS func)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleprocess(double input)Processes the input to compute an output.
-
-
-
Field Detail
-
count
public int count
-
func
public FunctionStoS func
-
-
Constructor Detail
-
CallCounterStoS
public CallCounterStoS(FunctionStoS func)
-
-
Method Detail
-
process
public double process(double input)
Description copied from interface:FunctionStoSProcesses the input to compute an output.- Specified by:
processin interfaceFunctionStoS- Parameters:
input- input parameter- Returns:
- output value
-
-
DataMelt 3.0 © DataMelt by jWork.ORG