Class BrentOptimizer.PointValuePair
java.lang.Object
org.apache.commons.statistics.inference.BrentOptimizer.PointValuePair
- Enclosing class:
BrentOptimizer
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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.
-
Field Details
-
point
private final double pointPoint. -
value
private final double valueValue 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
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.
-