MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CharMatrixXfEncoder.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_AUTO_ENCODERS_DUMMYCHARENCODER_HPP_
24 #define SRC_AUTO_ENCODERS_DUMMYCHARENCODER_HPP_
25 
27 
28 namespace mic {
29 namespace encoders {
30 
37 public:
42  CharMatrixXfEncoder(size_t sdr_length_) : MatrixSDREncoder(sdr_length_) {
43 // std::cout<<" Hello CharMatrixXfEncoder\n";
44  };
45 
48 
54  virtual mic::types::MatrixXfPtr encodeSample(const std::shared_ptr<char>& sample_);
55 
61  virtual std::shared_ptr<char> decodeSample(const mic::types::MatrixXfPtr& sdr_);
62 };
63 
64 } /* namespace encoders */
65 } /* namespace mic */
66 
67 #endif /* SRC_AUTO_ENCODERS_DUMMYCHARENCODER_HPP_ */
std::shared_ptr< mic::types::MatrixXf > MatrixXfPtr
Shared pointer to matrix with single precision floats (of dynamic size).
~CharMatrixXfEncoder()
Default destructor - empty.
virtual std::shared_ptr< char > decodeSample(const mic::types::MatrixXfPtr &sdr_)
Abstract parent class for all encoders using MatrixXf as SDR datatype.
Encoder responsible for encoding character into Matrix SDRs. A 1-of-k encoder, i.e. it simply encodes char to ASCII and turns on that bit, i.e. there is no learning.
virtual mic::types::MatrixXfPtr encodeSample(const std::shared_ptr< char > &sample_)
Method responsible for encoding of input data sample into SDR (a vector of floats).