public class VectorialPointValuePair
extends java.lang.Object
implements java.io.Serializable
This is a simple immutable container.
RealPointValuePair
,
MultivariateVectorialFunction
,
Serialized FormConstructor and Description |
---|
VectorialPointValuePair(double[] point,
double[] value)
Build a point/objective function value pair.
|
VectorialPointValuePair(double[] point,
double[] value,
boolean copyArray)
Build a point/objective function value pair.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getPoint()
Get the point.
|
double[] |
getPointRef()
Get a reference to the point.
|
double[] |
getValue()
Get the value of the objective function.
|
double[] |
getValueRef()
Get a reference to the value of the objective function.
|
public VectorialPointValuePair(double[] point, double[] value)
point
- point coordinates (the built instance will store
a copy of the array, not the array passed as argument)value
- value of an objective function at the pointpublic VectorialPointValuePair(double[] point, double[] value, boolean copyArray)
point
- point coordinates (the built instance will store
a copy of the array, not the array passed as argument)value
- value of an objective function at the pointcopyArray
- if true, the input arrays will be copied, otherwise
they will be referencedpublic double[] getPoint()
public double[] getPointRef()
This method is provided as a convenience to avoid copying the array, the elements of the array should not be modified.
public double[] getValue()
public double[] getValueRef()
This method is provided as a convenience to avoid copying the array, the elements of the array should not be modified.
Copyright © 2010 - 2020 Adobe. All Rights Reserved