|
MachineIntelligenceCore:Algorithms
|
Encoder responsible for encoding single channel (float) matrices (e.g. grayscale images) into SDRs. There is no learning (auto-encoding), instead it simply transforms matrix of floats into a vector. More...
#include <ColMatrixEncoder.hpp>


Public Member Functions | |
| ColMatrixEncoder (size_t matrix_height_, size_t matrix_width_) | |
| ~ColMatrixEncoder () | |
| Default destructor - empty. More... | |
| virtual mic::types::MatrixPtr< T > | encodeSample (const mic::types::MatrixPtr< T > &sample_) |
| Method responsible for encoding of input data sample into SDR (a 1D matrix - vector of floats). More... | |
| virtual mic::types::MatrixPtr< T > | decodeSample (const mic::types::MatrixPtr< T > &sdr_) |
Public Member Functions inherited from mic::encoders::MatrixSDREncoder< mic::types::Matrix< T >, T > | |
| MatrixSDREncoder (size_t sdr_length_) | |
| Constructor. More... | |
| virtual | ~MatrixSDREncoder () |
| virtual std::shared_ptr < mic::types::Matrix< T > > | encodeBatch (const std::vector< std::shared_ptr< mic::types::Matrix< T > > > &batch_) |
| virtual std::vector < std::shared_ptr < mic::types::Matrix< T > > > | decodeBatch (const std::shared_ptr< mic::types::Matrix< T > > &sdrs_) |
| size_t | getSDRLength () |
| void | setSDRLength (size_t sdr_length_) |
Public Member Functions inherited from mic::encoders::Encoder< mic::types::Matrix< T >, mic::types::Matrix< T > > | |
| Encoder () | |
| Constructor - empty. More... | |
| virtual | ~Encoder () |
| virtual std::shared_ptr < mic::types::Matrix< T > > | encodeSample (const std::shared_ptr< mic::types::Matrix< T > > &sample_)=0 |
| Method responsible for encoding input sample into SDR. More... | |
| virtual std::shared_ptr < mic::types::Matrix< T > > | decodeSample (const std::shared_ptr< mic::types::Matrix< T > > &sdr_)=0 |
Protected Attributes | |
| size_t | matrix_height |
| Height of the matrix - number of rows. More... | |
| size_t | matrix_width |
| Width of the matrix - number of columns. More... | |
Protected Attributes inherited from mic::encoders::MatrixSDREncoder< mic::types::Matrix< T >, T > | |
| size_t | sdr_length |
| Length of SDR. More... | |
Encoder responsible for encoding single channel (float) matrices (e.g. grayscale images) into SDRs. There is no learning (auto-encoding), instead it simply transforms matrix of floats into a vector.
Definition at line 38 of file ColMatrixEncoder.hpp.
|
inline |
Default constructor. Sets the encoding parameters.
| matrix_width_ | Width of the matrix. |
| matrix_height_ | Height of the matrix. |
Definition at line 46 of file ColMatrixEncoder.hpp.
|
inline |
Default destructor - empty.
Definition at line 54 of file ColMatrixEncoder.hpp.
|
inlinevirtual |
Method responsible for decoding of SDR into data.
| [in] | sdr_ | Shared pointer to SDR (1D matrix). |
Definition at line 76 of file ColMatrixEncoder.hpp.
References mic::encoders::ColMatrixEncoder< T >::matrix_height, and mic::encoders::ColMatrixEncoder< T >::matrix_width.
|
inlinevirtual |
Method responsible for encoding of input data sample into SDR (a 1D matrix - vector of floats).
| [in] | sample_ | Shared pointer to a matrix. |
Definition at line 61 of file ColMatrixEncoder.hpp.
References mic::encoders::MatrixSDREncoder< mic::types::Matrix< T >, T >::sdr_length.
|
protected |
Height of the matrix - number of rows.
Definition at line 88 of file ColMatrixEncoder.hpp.
Referenced by mic::encoders::ColMatrixEncoder< T >::decodeSample().
|
protected |
Width of the matrix - number of columns.
Definition at line 91 of file ColMatrixEncoder.hpp.
Referenced by mic::encoders::ColMatrixEncoder< T >::decodeSample().