Package gov.nih.mipav.model.algorithms
Class Vectornd
java.lang.Object
gov.nih.mipav.model.algorithms.Vectornd
N dimension vector class with the cost value.
- Author:
- wangh3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
point
private double[] pointN-dimension vector -
cost
private double costCost value
-
-
Constructor Details
-
Vectornd
public Vectornd() -
Vectornd
public Vectornd(double[] pt) -
Vectornd
public Vectornd(double[] pt, double cost) -
Vectornd
public Vectornd(double[] pt, boolean copy) -
Vectornd
public Vectornd(double[] pt, double cost, boolean copy)
-
-
Method Details
-
get
public double get(int index) -
getCost
public double getCost() -
setCost
public void setCost(double cost) -
getPoint
public double[] getPoint() -
setPoint
public void setPoint(double[] point) -
getDimension
public int getDimension() -
set
public void set(int index, double value)
-