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

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

#include <ostream.h>

Inheritance diagram for OStream:
Stream IOStream MacOSKeyboardOStream MacOSMouseOStream OStreamVector IOStreamVector TcpOStream ASCIISerialStream BinaryIntArraySerialStream

Public Member Functions

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 prediction results to other systems.

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

Note, this is for output streams that accept the output of classifiers (label numbers). For output streams that can also accept the multi-dimensional output of signal processing pipelines, implement OStreamVector.

Member Function Documentation

virtual void OStream::onReceive ( uint32_t  label)
pure virtual

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