Class PointValuePair

java.lang.Object
org.apache.commons.math3.util.Pair<double[],Double>
org.apache.commons.math3.optimization.PointValuePair
All Implemented Interfaces:
Serializable

@Deprecated public class PointValuePair extends Pair<double[],Double> implements Serializable
Deprecated.
As of 3.1 (to be removed in 4.0).
This class holds a point and the value of an objective function at that point.
Since:
3.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    Deprecated.
    Internal class used only for serialization.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
    Deprecated.
    Serializable UID.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PointValuePair(double[] point, double value)
    Deprecated.
    Builds a point/objective function value pair.
    PointValuePair(double[] point, double value, boolean copyArray)
    Deprecated.
    Builds a point/objective function value pair.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    Deprecated.
    Gets the point.
    double[]
    Deprecated.
    Gets a reference to the point.
    private Object
    Deprecated.
    Replace the instance with a data transfer object for serialization.

    Methods inherited from class org.apache.commons.math3.util.Pair

    create, equals, getFirst, getKey, getSecond, getValue, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      Serializable UID.
      See Also:
  • Constructor Details

    • PointValuePair

      public PointValuePair(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.
    • PointValuePair

      public PointValuePair(double[] point, double value, boolean copyArray)
      Deprecated.
      Builds a point/objective function value pair.
      Parameters:
      point - Point coordinates.
      value - Value of the objective function at the point.
      copyArray - if true, the input array will be copied, otherwise it 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.
    • writeReplace

      private Object writeReplace()
      Deprecated.
      Replace the instance with a data transfer object for serialization.
      Returns:
      data transfer object that will be serialized