|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.util.Pair<double[],double[]>
org.apache.commons.math3.optim.PointVectorValuePair
public class PointVectorValuePair
This class holds a point and the vectorial value of an objective function at that point.
PointValuePair,
MultivariateVectorFunction,
Serialized Form| Nested Class Summary | |
|---|---|
private static class |
PointVectorValuePair.DataTransferObject
Internal class used only for serialization. |
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Serializable UID. |
| Constructor Summary | |
|---|---|
PointVectorValuePair(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 | |
|---|---|
double[] |
getPoint()
Gets the point. |
double[] |
getPointRef()
Gets a reference to the point. |
double[] |
getValue()
Gets the value of the objective function. |
double[] |
getValueRef()
Gets a reference to the value of the objective function. |
private Object |
writeReplace()
Replace the instance with a data transfer object for serialization. |
| Methods inherited from class org.apache.commons.math3.util.Pair |
|---|
equals, getFirst, getKey, getSecond, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public PointVectorValuePair(double[] point,
double[] value)
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.
public PointVectorValuePair(double[] point,
double[] value,
boolean copyArray)
point - Point coordinates.value - Value of the objective function at the point.copyArray - if true, the input arrays will be copied,
otherwise they will be referenced.| Method Detail |
|---|
public double[] getPoint()
public double[] getPointRef()
public double[] getValue()
getValue in class Pair<double[],double[]>public double[] getValueRef()
private Object writeReplace()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||