|
kmeans
k-means clustering in C++
|
Extractor for accessing indexed observations. More...
#include <Matrix.hpp>
Public Member Functions | |
| virtual const Data_ * | get_observation ()=0 |
Extractor for accessing indexed observations.
This is typically generated by the Matrix::new_extractor() overload that accepts a pointer to a sequence of indices. It can be assumed that the lifetime of each extractor will not exceed that of its parent Matrix.
| Index_ | Integer type of the observation indices. |
| Data_ | Numeric type of the data. |
|
pure virtual |
Matrix::num_dimensions(), containing the coordinates for the next observation.The first call to this method should return the coordinates of the sequence[0] observation from Matrix::new_extractor(). The next call should return sequence[1], etc. until a maximum of length calls have been performed.
This method will only be called within a single thread and may modify internal data members of a ConsecutiveAccessExtractor subclass.