Package Functions

Class HandlerForFunctions

java.lang.Object
Functions.HandlerForFunctions

public class HandlerForFunctions
extends java.lang.Object
class to show how methods work
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.List<Function> functions
    list of quadratic functions to find minimum of
  • Constructor Summary

    Constructors 
    Constructor Description
    HandlerForFunctions()
    create a list of three different quadratic functions
    HandlerForFunctions​(java.util.List<Function> functions)
    constructs an instance of class with specified quadratic functions (Function) to explore
  • Method Summary

    Modifier and Type Method Description
    void printAll​(java.io.OutputStream outputStream)
    this function print results of gradient search methods into the specified OutputStream

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • functions

      private final java.util.List<Function> functions
      list of quadratic functions to find minimum of
  • Constructor Details

    • HandlerForFunctions

      public HandlerForFunctions()
      create a list of three different quadratic functions
    • HandlerForFunctions

      public HandlerForFunctions​(java.util.List<Function> functions)
      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.IOException
      this function print results of gradient search methods into the specified OutputStream
      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