knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
knncolle::L2NormalizedMatrix< Index_, Data_, Normalized_, Matrix_ > Class Template Referencefinal

Wrapper around a matrix with L2 normalization. More...

#include <L2Normalized.hpp>

Inheritance diagram for knncolle::L2NormalizedMatrix< Index_, Data_, Normalized_, Matrix_ >:
Collaboration diagram for knncolle::L2NormalizedMatrix< Index_, Data_, Normalized_, Matrix_ >:

Additional Inherited Members

- Public Member Functions inherited from knncolle::Matrix< Index_, Normalized_ >
virtual Index_ num_observations () const=0
 
virtual std::size_t num_dimensions () const=0
 
virtual std::unique_ptr< MatrixExtractor< Normalized_ > > new_extractor () const=0
 

Detailed Description

template<typename Index_, typename Data_, typename Normalized_, typename Matrix_ = Matrix<Index_, Data_>>
class knncolle::L2NormalizedMatrix< Index_, Data_, Normalized_, Matrix_ >

Wrapper around a matrix with L2 normalization.

Template Parameters
Index_Integer type for the indices.
Data_Numeric type for the original matrix data.
Normalized_Floating-point type for the L2-normalized data.
Matrix_Class of the input data matrix. This should satisfy the Matrix interface.

This class satisfies the Matrix interface and performs L2 normalization of each observation's data vector in its implementation of MatrixExtractor::next(). It is mainly intended for use as a template argument when defining a builder for the L2NormalizedBuilder constructor. In general, users should not be constructing an actual instance of this class.


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