Package org.hipparchus.optim
Class PointVectorValuePair
java.lang.Object
org.hipparchus.util.Pair<double[],double[]>
org.hipparchus.optim.PointVectorValuePair
- All Implemented Interfaces:
Serializable
This class holds a point and the vectorial value of an objective function at
that point.
-
Constructor Summary
ConstructorDescriptionPointVectorValuePair
(double[] point, double[] value) Builds a point/objective function value pair.PointVectorValuePair
(double[] point, double[] value, boolean copyArray) Build a point/objective function value pair. -
Method Summary
-
Constructor Details
-
PointVectorValuePair
public PointVectorValuePair(double[] point, double[] value) Builds a point/objective function value pair.- Parameters:
point
- Point coordinates. This instance will store a copy of the array, not the array passed as argument.value
- Value of the objective function at the point.
-
PointVectorValuePair
public PointVectorValuePair(double[] point, double[] value, boolean copyArray) Build a point/objective function value pair.- Parameters:
point
- Point coordinates.value
- Value of the objective function at the point.copyArray
- iftrue
, the input arrays will be copied, otherwise they will be referenced.
-
-
Method Details
-
getPoint
public double[] getPoint()Gets the point.- Returns:
- a copy of the stored point.
-
getPointRef
public double[] getPointRef()Gets a reference to the point.- Returns:
- a reference to the internal array storing the point.
-
getValue
public double[] getValue()Gets the value of the objective function. -
getValueRef
public double[] getValueRef()Gets a reference to the value of the objective function.- Returns:
- a reference to the internal array storing the value of the objective function.
-