org.ddogleg.optimization.impl
Class TrivialFunctionNtoS
- java.lang.Object
-
- org.ddogleg.optimization.impl.TrivialFunctionNtoS
-
- All Implemented Interfaces:
- FunctionNtoS
public class TrivialFunctionNtoS extends java.lang.Object implements FunctionNtoS
Test function with a minimum at 0 and minimum value of 0. One of the variables is redundant.
-
-
Constructor Summary
Constructors Constructor and Description TrivialFunctionNtoS()
-
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.
-
-
-
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