All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
Akumuli::SAX::SAXEncoder Struct Reference

Symbolic Aggregate approXimmation encoder. More...

#include <saxencoder.h>

Public Member Functions

 SAXEncoder (int alphabet, int window_width)
bool encode (double sample, char *outword, size_t outword_size)

Public Attributes

int alphabet_
int window_width_
 alphabet size
boost::circular_buffer< double > input_samples_
 sliding window width
std::string buffer_
std::string last_

Detailed Description

Symbolic Aggregate approXimmation encoder.

Constructor & Destructor Documentation

Akumuli::SAX::SAXEncoder::SAXEncoder ( int  alphabet,
int  window_width 


alphabetsize should be a power of two

Member Function Documentation

bool Akumuli::SAX::SAXEncoder::encode ( double  sample,
char *  outword,
size_t  outword_size 

Add sample to sliding window

outwordreceives new sax word if true returned
true if new sax word returned; false otherwise

The documentation for this struct was generated from the following files: