Class BrentOptimizer.PointValuePair
- java.lang.Object
-
- org.apache.commons.statistics.inference.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
-
-
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.
-
-
-
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.
-
-