STAG Python  2.0.2
Spectral Toolkit of Algorithms for Graphs
Loading...
Searching...
No Matches
stag.data.DataPoint Class Reference

Description

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.
 

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ dimension()

int stag.data.DataPoint.dimension (   self)

Get the number of dimensions of this data point.

◆ to_numpy()

np.ndarray stag.data.DataPoint.to_numpy (   self)

Convert this data point to a numpy array.