|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.optimization.PointCostPair
public class PointCostPair
This class holds a point and its associated cost.
This is a simple immutable container.
CostFunction
Field Summary | |
---|---|
private double |
cost
Cost associated to the point. |
private double[] |
point
Point coordinates. |
Constructor Summary | |
---|---|
PointCostPair(double[] point,
double cost)
Build a point/cost pair. |
Method Summary | |
---|---|
double |
getCost()
Get the cost. |
double[] |
getPoint()
Get the point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final double[] point
private final double cost
Constructor Detail |
---|
public PointCostPair(double[] point, double cost)
point
- point coordinates (the built instance will store
a copy of the array, not the array passed as argument)cost
- point costMethod Detail |
---|
public double[] getPoint()
public double getCost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |