Package Functions
Class HandlerForFunctions
java.lang.Object
Functions.HandlerForFunctions
public class HandlerForFunctions
extends java.lang.Object
class to show how methods work
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HandlerForFunctions()create a list of three different quadratic functionsHandlerForFunctions(java.util.List<Function> functions)constructs an instance of class with specified quadratic functions (Function) to explore -
Method Summary
Modifier and Type Method Description voidprintAll(java.io.OutputStream outputStream)this function print results of gradient search methods into the specifiedOutputStream
-
Field Details
-
functions
list of quadratic functions to find minimum of
-
-
Constructor Details
-
HandlerForFunctions
public HandlerForFunctions()create a list of three different quadratic functions -
HandlerForFunctions
constructs an instance of class with specified quadratic functions (Function) to explore- Parameters:
functions- list of quadratic functions
-
-
Method Details
-
printAll
public void printAll(java.io.OutputStream outputStream) throws java.io.IOExceptionthis function print results of gradient search methods into the specifiedOutputStream- Parameters:
outputStream- output stream we want to see the results of gradient search methods where- Throws:
java.io.IOException- if some errors occurred during printing
-