![]() |
STAG Python
2.0.2
Spectral Toolkit of Algorithms for Graphs
|
A data point in d-dimensional space.
A data point is a reference to a single row of a data matrix.
Public Member Functions | |
| def | __init__ (self, utility.DenseMat mat, int row) |
| Initialise a data point object. | |
| int | dimension (self) |
| Get the number of dimensions of this data point. | |
| np.ndarray | to_numpy (self) |
| Convert this data point to a numpy array. | |
| def stag.data.DataPoint.__init__ | ( | self, | |
| utility.DenseMat | mat, | ||
| int | row | ||
| ) |
Initialise a data point object.
This object refers to a single row of the provided stag.utility.DenseMat object.
| int stag.data.DataPoint.dimension | ( | self | ) |
Get the number of dimensions of this data point.
| np.ndarray stag.data.DataPoint.to_numpy | ( | self | ) |
Convert this data point to a numpy array.