org.ddogleg.optimization
Class CallCounterNtoN
- java.lang.Object
-
- org.ddogleg.optimization.CallCounterNtoN
-
- All Implemented Interfaces:
- FunctionNtoN
public class CallCounterNtoN extends java.lang.Object implements FunctionNtoN
Wraps around a function and counts the number of times it processes an input.
-
-
Field Summary
Fields Modifier and Type Field and Description intcountFunctionNtoNfunc
-
Constructor Summary
Constructors Constructor and Description CallCounterNtoN(FunctionNtoN func)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetN()Returns the number of inputs and outputs for this function.voidprocess(double[] input, double[] output)Processes the function.
-
-
-
Field Detail
-
count
public int count
-
func
public FunctionNtoN func
-
-
Constructor Detail
-
CallCounterNtoN
public CallCounterNtoN(FunctionNtoN func)
-
-
Method Detail
-
getN
public int getN()
Description copied from interface:FunctionNtoNReturns the number of inputs and outputs for this function.- Specified by:
getNin interfaceFunctionNtoN
-
process
public void process(double[] input, double[] output)Description copied from interface:FunctionNtoNProcesses the function.- Specified by:
processin interfaceFunctionNtoN- Parameters:
input- Array with the inputs of length N. Not modified.output- Array for storing the output of length N. Modified.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG