Class UnivariatePointValuePair
java.lang.Object
org.apache.commons.math3.optim.univariate.UnivariatePointValuePair
- All Implemented Interfaces:
Serializable
This class holds a point and the value of an objective function at this
point.
This is a simple immutable container.
- Since:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
Point.private static final long
Serializable version identifier.private final double
Value of the objective function at the point. -
Constructor Summary
ConstructorsConstructorDescriptionUnivariatePointValuePair
(double point, double value) Build a point/objective function value pair. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
point
private final double pointPoint. -
value
private final double valueValue of the objective function at the point.
-
-
Constructor Details
-
UnivariatePointValuePair
public UnivariatePointValuePair(double point, double value) Build a point/objective function value pair.- Parameters:
point
- Point.value
- Value of an objective function at the point
-
-
Method Details
-
getPoint
public double getPoint()Get the point.- Returns:
- the point.
-
getValue
public double getValue()Get the value of the objective function.- Returns:
- the stored value of the objective function.
-