|
||||||||||
| 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| 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 |
| 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 cost| Method Detail |
|---|
public double[] getPoint()
public double getCost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||