|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.optimization.RealPointValuePair
public class RealPointValuePair
This class holds a point and the value of an objective function at this point.
This is a simple immutable container.
VectorialPointValuePair,
MultivariateRealFunction,
Serialized Form| Constructor Summary | |
|---|---|
RealPointValuePair(double[] point,
double value)
Build a point/objective function value pair. |
|
RealPointValuePair(double[] point,
double value,
boolean copyArray)
Build a point/objective function value pair. |
|
| Method Summary | |
|---|---|
double[] |
getPoint()
Get the point. |
double[] |
getPointRef()
Get a reference to the point. |
double |
getValue()
Get the value of the objective function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RealPointValuePair(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 point
public RealPointValuePair(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 array will be copied, otherwise
it will be referenced| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||