Class BrentOptimizer.PointValuePair

  • Enclosing class:
    BrentOptimizer

    static final class BrentOptimizer.PointValuePair
    extends java.lang.Object
    This class holds a point and the value of an objective function at this point. This is a simple immutable container.
    Since:
    1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double point
      Point.
      private double value
      Value of the objective function at the point.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PointValuePair​(double point, double value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) double getPoint()
      Get the point.
      (package private) double getValue()
      Get the value of the objective function.
      (package private) static BrentOptimizer.PointValuePair of​(double point, double value)
      Create a point/objective function value pair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • point

        private final double point
        Point.
      • value

        private final double value
        Value of the objective function at the point.
    • Constructor Detail

      • PointValuePair

        private PointValuePair​(double point,
                               double value)
        Parameters:
        point - Point.
        value - Value of an objective function at the point.
    • Method Detail

      • of

        static BrentOptimizer.PointValuePair of​(double point,
                                                double value)
        Create a point/objective function value pair.
        Parameters:
        point - Point.
        value - Value of an objective function at the point.
        Returns:
        the pair
      • getPoint

        double getPoint()
        Get the point.
        Returns:
        the point.
      • getValue

        double getValue()
        Get the value of the objective function.
        Returns:
        the stored value of the objective function.