Package edu.cmu.tetrad.util
Class Point
java.lang.Object
edu.cmu.tetrad.util.Point
- All Implemented Interfaces:
Comparable<Point>
Implements an n-dimensional point.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Point
Constructs a point with coordinates as in the given vector.- Parameters:
vector
- a vector representing the point coordinates, in order.
-
-
Method Details
-
getValue
public double getValue(int index) getValue.
- Parameters:
index
- Ibid.- Returns:
- Ibid.
-
getSize
public int getSize()getSize.
- Returns:
- Ibid.
-
compareTo
True iff the given object is a point with the same coordinates as this one.- Specified by:
compareTo
in interfaceComparable<Point>
- Parameters:
p
- Ibid.- Returns:
- Ibid.
-
toString
-
getVector
-