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 within L2NormalizedBuilder. In general, users should not be manually constructing an instance of this class.