knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
knncolle::MatrixExtractor< Data_ > Class Template Referenceabstract

Extractor interface for matrix data. More...

#include <Matrix.hpp>

Public Member Functions

virtual const Data_ * next ()=0
 

Detailed Description

template<typename Data_>
class knncolle::MatrixExtractor< Data_ >

Extractor interface for matrix data.

Template Parameters
Data_Numeric type of the data.

Member Function Documentation

◆ next()

template<typename Data_ >
virtual const Data_ * knncolle::MatrixExtractor< Data_ >::next ( )
pure virtual
Returns
Pointer to an array of length equal to Matrix::num_dimensions(), containing the coordinates for the next observation.

For a newly created MatrixExtractor, the first call to next() should return the coordinates of the first observation in the matrix; the next call should return the coordinates of the second observation; and so on, for up to Matrix::num_observations() calls, after which the MatrixExtractor should no longer be used. The pointer returned by each call to next() is only guaranteed to be valid until the next call to next() or the MatrixExtractor is destroyed.


The documentation for this class was generated from the following file: