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

Base class for output streams that forward ESP pipeline output to other systems. More...

#include <ostream.h>

Inheritance diagram for OStreamVector:
OStream Stream IOStreamVector TcpOStream ASCIISerialStream BinaryIntArraySerialStream

Public Member Functions

virtual void onReceive (vector< double >)=0
 
- Public Member Functions inherited from OStream
virtual void onReceive (uint32_t label)=0
 
- Public Member Functions inherited from Stream
 Stream ()
 
virtual bool start ()
 
virtual void stop ()
 
void toggle ()
 
bool hasStarted ()
 

Additional Inherited Members

- Protected Attributes inherited from Stream
std::atomic_bool has_started_
 

Detailed Description

Base class for output streams that forward ESP pipeline output to other systems.

To use an OStreamVector instance in your application, pass it to useOutputStream() in your setup() function.

Note: this is for output streams that can handle both classifier output (a single label) and signal processing output (multi-dimensional floating point vectors). For output streams that only accept classifier output, implement OStream.

Member Function Documentation

virtual void OStreamVector::onReceive ( vector< double >  )
pure virtual

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