Class PointVectorValuePair
java.lang.Object
org.apache.commons.math3.util.Pair<double[],double[]>
org.apache.commons.math3.optimization.PointVectorValuePair
- All Implemented Interfaces:
Serializable
@Deprecated
public class PointVectorValuePair
extends Pair<double[],double[]>
implements Serializable
Deprecated.
As of 3.1 (to be removed in 4.0).
This class holds a point and the vectorial value of an objective function at
that point.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Deprecated.Internal class used only for serialization. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Deprecated.Serializable UID. -
Constructor Summary
ConstructorsConstructorDescriptionPointVectorValuePair
(double[] point, double[] value) Deprecated.Builds a point/objective function value pair.PointVectorValuePair
(double[] point, double[] value, boolean copyArray) Deprecated.Build a point/objective function value pair. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getPoint()
Deprecated.Gets the point.double[]
Deprecated.Gets a reference to the point.double[]
getValue()
Deprecated.Gets the value of the objective function.double[]
Deprecated.Gets a reference to the value of the objective function.private Object
Deprecated.Replace the instance with a data transfer object for serialization.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Serializable UID.- See Also:
-
-
Constructor Details
-
PointVectorValuePair
public PointVectorValuePair(double[] point, double[] value) Deprecated.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) Deprecated.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()Deprecated.Gets the point.- Returns:
- a copy of the stored point.
-
getPointRef
public double[] getPointRef()Deprecated.Gets a reference to the point.- Returns:
- a reference to the internal array storing the point.
-
getValue
public double[] getValue()Deprecated.Gets the value of the objective function. -
getValueRef
public double[] getValueRef()Deprecated.Gets a reference to the value of the objective function.- Returns:
- a reference to the internal array storing the value of the objective function.
-
writeReplace
Deprecated.Replace the instance with a data transfer object for serialization.- Returns:
- data transfer object that will be serialized
-