MachineIntelligenceCore:Algorithms
|
Encoder responsible for encoding unsigned integers into Matrix SDRs. A 1-of-k encoder, i.e. it simply turns on the adequate, i.e. there is no learning. More...
#include <UIntMatrixEncoder.hpp>
Public Member Functions | |
UIntMatrixEncoder (size_t sdr_length_) | |
~UIntMatrixEncoder () | |
Default destructor - empty. More... | |
virtual mic::types::MatrixPtr< T > | encodeSample (const std::shared_ptr< unsigned int > &sample_) |
Method responsible for encoding of input data sample into SDR (a vector of floats). More... | |
virtual std::shared_ptr < unsigned int > | decodeSample (const mic::types::MatrixPtr< T > &sdr_) |
![]() | |
MatrixSDREncoder (size_t sdr_length_) | |
Constructor. More... | |
virtual | ~MatrixSDREncoder () |
virtual std::shared_ptr < mic::types::Matrix< T > > | encodeBatch (const std::vector< std::shared_ptr< unsigned int > > &batch_) |
virtual std::vector < std::shared_ptr< unsigned int > > | decodeBatch (const std::shared_ptr< mic::types::Matrix< T > > &sdrs_) |
size_t | getSDRLength () |
void | setSDRLength (size_t sdr_length_) |
![]() | |
Encoder () | |
Constructor - empty. More... | |
virtual | ~Encoder () |
virtual std::shared_ptr < unsigned int > | decodeSample (const std::shared_ptr< mic::types::Matrix< T > > &sdr_)=0 |
Additional Inherited Members | |
![]() | |
size_t | sdr_length |
Length of SDR. More... | |
Encoder responsible for encoding unsigned integers into Matrix SDRs. A 1-of-k encoder, i.e. it simply turns on the adequate, i.e. there is no learning.
Definition at line 45 of file UIntMatrixEncoder.hpp.
|
inline |
Default constructor.
sdr_length_ | SDR length. |
Definition at line 51 of file UIntMatrixEncoder.hpp.
|
inline |
Default destructor - empty.
Definition at line 56 of file UIntMatrixEncoder.hpp.
|
inlinevirtual |
Method responsible for decoding of SDR into data.
[in] | sdr_ | Shared pointer to SDR. |
Definition at line 83 of file UIntMatrixEncoder.hpp.
|
inlinevirtual |
Method responsible for encoding of input data sample into SDR (a vector of floats).
[in] | sample_ | Shared pointer to unsigned int. |
Implements mic::encoders::Encoder< unsigned int, mic::types::Matrix< T > >.
Definition at line 63 of file UIntMatrixEncoder.hpp.
References mic::encoders::MatrixSDREncoder< unsigned int, T >::sdr_length.