Represents sketch of matrix. More...
#include <frequent_directions.hpp>
Public Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
serialize | |
frequent_directions (Matrix matrix, std::size_t const compress_size) | |
Creates sketch. More... | |
frequent_directions () | |
default constructor, only for serialization purpose | |
bool | operator== (frequent_directions const &other) const |
operator== | |
template<typename MatrixData > | |
void | update (MatrixData &&matrix) |
Adds new data in matrix form. | |
template<typename InputRow > | |
void | update_row (InputRow &&input_row) |
Adds one new row. | |
template<typename RowRange > | |
void | update_range (RowRange &&row_range) |
Adds new rows. | |
void | compress () |
Compress sketch. More... | |
std::pair< Matrix const &, std::size_t > | get_sketch () |
Represents sketch of matrix.
example:
complete example is frequent_directions_example.cpp
Matrix |
Definition at line 92 of file frequent_directions.hpp.
|
inline |
Creates sketch.
matrix | sketch matrix where data is stored |
compress_size | number of nonzero rows after compress phase |
Definition at line 115 of file frequent_directions.hpp.
|
inline |
Compress sketch.
After compress phase sketch contains m_compress_size nonzero rows.
Definition at line 164 of file frequent_directions.hpp.
|
inline |
Definition at line 192 of file frequent_directions.hpp.