Class BrentOptimizer.PointValuePair

java.lang.Object
org.apache.commons.statistics.inference.BrentOptimizer.PointValuePair
Enclosing class:
BrentOptimizer

static final class BrentOptimizer.PointValuePair extends 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 final double
    Point.
    private final double
    Value of the objective function at the point.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    (package private) double
    Get the point.
    (package private) double
    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 Details

    • point

      private final double point
      Point.
    • value

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

    • PointValuePair

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

    • 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.