MachineIntelligenceCore:Algorithms
|
Abstract parent class for all encoders using MatrixXf as SDR datatype. More...
#include <MatrixSDREncoder.hpp>
Public Member Functions | |
MatrixSDREncoder (size_t sdr_length_) | |
Constructor. More... | |
virtual | ~MatrixSDREncoder () |
virtual std::shared_ptr < mic::types::Matrix < outputDataType > > | encodeBatch (const std::vector< std::shared_ptr< inputDataType > > &batch_) |
virtual std::vector < std::shared_ptr < inputDataType > > | decodeBatch (const std::shared_ptr< mic::types::Matrix< outputDataType > > &sdrs_) |
size_t | getSDRLength () |
void | setSDRLength (size_t sdr_length_) |
![]() | |
Encoder () | |
Constructor - empty. More... | |
virtual | ~Encoder () |
virtual std::shared_ptr < mic::types::Matrix < outputDataType > > | encodeSample (const std::shared_ptr< inputDataType > &sample_)=0 |
Method responsible for encoding input sample into SDR. More... | |
virtual std::shared_ptr < inputDataType > | decodeSample (const std::shared_ptr< mic::types::Matrix< outputDataType > > &sdr_)=0 |
Protected Attributes | |
size_t | sdr_length |
Length of SDR. More... | |
Abstract parent class for all encoders using MatrixXf as SDR datatype.
inputDataType | Template parameter defining the input (sample) datatype. |
SDRType | Template parameter defining the SDR type. |
Definition at line 41 of file MatrixSDREncoder.hpp.
|
inline |
|
inlinevirtual |
Virtual destructor - empty.
Definition at line 56 of file MatrixSDREncoder.hpp.
|
inlinevirtual |
Method responsible for encoding batch containing several samples into matrix containing several SDRs. Each sample SDR is stored in a separate column.
[in] | batch_ | Vector of shared pointers containing samples |
Definition at line 87 of file MatrixSDREncoder.hpp.
Referenced by main().
|
inlinevirtual |
Method responsible for encoding batch containing several samples into matrix containing several SDRs.
[in] | batch_ | Vector of shared pointers containing samples |
Definition at line 64 of file MatrixSDREncoder.hpp.
Referenced by main().
|
inline |
Returns the SDR length.
Definition at line 108 of file MatrixSDREncoder.hpp.
|
inline |
Sets SDR length.
sdr_length_ | SDR length. |
Definition at line 116 of file MatrixSDREncoder.hpp.
|
protected |
Length of SDR.
Definition at line 123 of file MatrixSDREncoder.hpp.
Referenced by mic::encoders::MatrixSDREncoder< unsigned int, T >::encodeBatch(), mic::encoders::MatrixSDREncoder< unsigned int, T >::getSDRLength(), and mic::encoders::MatrixSDREncoder< unsigned int, T >::setSDRLength().