ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
IOStream Class Reference

#include <iostream.h>

Inheritance diagram for IOStream:
InputStream OStream Stream Stream

Additional Inherited Members

- Public Types inherited from InputStream
using normalizeFunc = std::function< double(double)>
 
using vectorNormalizeFunc = std::function< vector< double >(vector< double >)>
 
typedef std::function< void(GRT::MatrixDouble)> onDataReadyCallback
 
- Public Member Functions inherited from InputStream
 InputStream ()
 
virtual ~InputStream ()=default
 
virtual int getNumInputDimensions ()=0
 
virtual int getNumOutputDimensions ()
 
void useNormalizer (normalizeFunc f)
 
void useNormalizer (vectorNormalizeFunc f)
 
void onDataReadyEvent (onDataReadyCallback callback)
 
template<typename T1 , typename arg , class T >
void onDataReadyEvent (T1 *owner, void(T::*listenerMethod)(arg))
 
void setLabelsForAllDimensions (const vector< string > labels)
 
void setLabelsForAllDimensions (std::initializer_list< string > list)
 
const vector< string > & getLabels () const
 
- Public Member Functions inherited from Stream
 Stream ()
 
virtual bool start ()
 
virtual void stop ()
 
void toggle ()
 
bool hasStarted ()
 
- Public Member Functions inherited from OStream
virtual void onReceive (uint32_t label)=0
 
- Protected Member Functions inherited from InputStream
vector< double > normalize (vector< double >)
 
- Protected Attributes inherited from InputStream
vector< string > InputStream_labels_
 
onDataReadyCallback data_ready_callback_
 
normalizeFunc normalizer_
 
vectorNormalizeFunc vectorNormalizer_
 
- Protected Attributes inherited from Stream
std::atomic_bool has_started_
 

The documentation for this class was generated from the following file: