org.ddogleg.optimization
Class CallCounterNtoS
- java.lang.Object
-
- org.ddogleg.optimization.CallCounterNtoS
-
- All Implemented Interfaces:
- FunctionNtoS
public class CallCounterNtoS extends java.lang.Object implements FunctionNtoS
Wraps around a function and counts the number of times it processes an input.
-
-
Field Summary
Fields Modifier and Type Field and Description intcountFunctionNtoSfunc
-
Constructor Summary
Constructors Constructor and Description CallCounterNtoS(FunctionNtoS func)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumOfInputsN()The number of inputs.doubleprocess(double[] input)Computes the output given an array of inputs.
-
-
-
Field Detail
-
count
public int count
-
func
public FunctionNtoS func
-
-
Constructor Detail
-
CallCounterNtoS
public CallCounterNtoS(FunctionNtoS func)
-
-
Method Detail
-
getNumOfInputsN
public int getNumOfInputsN()
Description copied from interface:FunctionNtoSThe number of inputs. Typically the parameters you are optimizing.- Specified by:
getNumOfInputsNin interfaceFunctionNtoS- Returns:
- Number of inputs.
-
process
public double process(double[] input)
Description copied from interface:FunctionNtoSComputes the output given an array of inputs.- Specified by:
processin interfaceFunctionNtoS- Parameters:
input- Array containing input values- Returns:
- The output.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG