|
knncolle
Collection of KNN methods in C++
|
Wrapper around a matrix with L2 normalization. More...
#include <L2Normalized.hpp>


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 |
Wrapper around a matrix with L2 normalization.
| 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.