| 
    MachineIntelligenceCore:Algorithms
    
   | 
 
Abstract parent class for all encoders. More...
#include <Encoder.hpp>
Public Member Functions | |
| Encoder () | |
| Constructor - empty.  More... | |
| virtual | ~Encoder () | 
| virtual std::shared_ptr< SDRType > | 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< SDRType > &sdr_)=0 | 
Abstract parent class for all encoders.
| inputDataType | Template parameter defining the input (sample) datatype. | 
| SDRType | Template parameter defining the SDR type. | 
Definition at line 48 of file Encoder.hpp.
      
  | 
  inline | 
Constructor - empty.
Definition at line 54 of file Encoder.hpp.
      
  | 
  inlinevirtual | 
Virtual destructor - empty.
Definition at line 61 of file Encoder.hpp.
      
  | 
  pure virtual | 
Method responsible for decoding of SDR back into original data type.
| [in] | sdr_ | Shared pointer to SDR. | 
      
  | 
  pure virtual | 
Method responsible for encoding input sample into SDR.
| [in] | sample_ | Shared pointer to sample data. | 
Implemented in mic::encoders::UIntMatrixEncoder< T >, and mic::encoders::CharMatrixXfEncoder.