kmeans
A C++ library for k-means
|
A simple matrix of observations. More...
#include <SimpleMatrix.hpp>
Public Member Functions | |
SimpleMatrix (Dim_ num_dimensions, Index_ num_observations, const Data_ *data) | |
A simple matrix of observations.
This defines a simple column-major matrix of observations where the columns are observations and the rows are dimensions. It is compatible with the compile-time interface described in MockMatrix
.
Data_ | Floating-point type for the data. |
Index_ | Integer type for the observation indices. |
Dim_ | Integer type for the dimensions. |
|
inline |
num_dimensions | Number of dimensions. | |
num_observations | Number of observations. | |
[in] | data | Pointer to an array of length num_dim * num_obs , containing a column-major matrix of observation data. It is expected that the array will not be deallocated during the lifetime of this SimpleMatrix instance. |