CEBL
2.1
|
#include <EEGData.hpp>
Public Member Functions | |
EEGData () | |
EEGData (const ublas::matrix< double > &) | |
EEGData (const EEGData &data) | |
~EEGData () | |
void | append (const EEGData &data) |
append samples by column. | |
void | clear () |
remove all data. | |
EEGData & | operator= (const EEGData &data) |
ublas::matrix< double > & | getMatrix () |
int | size1 () const |
Determine number of rows or channels. | |
int | size2 () const |
Determine number of columns or samples. | |
int | nrow () const |
other names for size1 and size 2 | |
int | ncol () const |
int | numSamples () const |
Samples are number of columns. | |
int | numChannels () const |
Channels are number of rows. | |
void | saveToFile (const char *filename, std::ios_base::openmode mode=std::ios_base::app) const |
void | saveToFile (std::ofstream &ofs) const |
void | loadFromFile (const std::string str) |
void | loadFromFile (const char *filename) |
void | loadFromFile (std::ifstream &ifs) |
void | splitData (EEGData *, EEGData *, int, DataSelectionMethod) const |
void | print () |
Friends | |
class | boost::serialization::access |
Definition at line 48 of file EEGData.hpp.
EEGData::EEGData | ( | ) |
Definition at line 21 of file EEGData.cpp.
EEGData::EEGData | ( | const ublas::matrix< double > & | data | ) |
Definition at line 25 of file EEGData.cpp.
EEGData::EEGData | ( | const EEGData & | data | ) |
Definition at line 29 of file EEGData.cpp.
EEGData::~EEGData | ( | ) |
Definition at line 33 of file EEGData.cpp.
void EEGData::append | ( | const EEGData & | data | ) |
append samples by column.
Definition at line 39 of file EEGData.cpp.
References size1(), and size2().
Referenced by EEGTrainingData::collapse(), operator+(), DataSource::read(), and DataSource::readAll().
void EEGData::clear | ( | ) |
remove all data.
Definition at line 71 of file EEGData.cpp.
Referenced by DataSource::clearStoredData(), DataSource::DataSource(), and EEGDataStream::readAll().
|
inline |
Definition at line 79 of file EEGData.hpp.
Referenced by FilterConfig::apply(), FilterConfig::getComponents(), DataProcess::process(), and FilterConfig::train().
|
inline |
Definition at line 102 of file EEGData.hpp.
References loadFromFile().
Referenced by loadFromFile(), DataIO::loadTrainingDataFromFile(), and FileDataStreamConfig::openFile().
void EEGData::loadFromFile | ( | const char * | filename | ) |
Definition at line 118 of file EEGData.cpp.
void EEGData::loadFromFile | ( | std::ifstream & | ifs | ) |
Definition at line 133 of file EEGData.cpp.
|
inline |
Definition at line 89 of file EEGData.hpp.
Referenced by FilterConfig::getComponents().
|
inline |
other names for size1 and size 2
Definition at line 88 of file EEGData.hpp.
Referenced by FilterConfig::getComponents(), and DataProcess::process().
|
inline |
Channels are number of rows.
Definition at line 95 of file EEGData.hpp.
Referenced by FileDataStreamConfig::openFile(), and DataIO::saveTrainingSessionToFile().
|
inline |
Samples are number of columns.
Definition at line 93 of file EEGData.hpp.
Referenced by EEGDataStream::getSamplesAvailable(), DataSource::getStoreNumSamples(), FileDataStreamConfig::openFile(), and DataIO::saveTrainingSessionToFile().
Definition at line 267 of file EEGData.cpp.
void EEGData::print | ( | ) |
Definition at line 276 of file EEGData.cpp.
void EEGData::saveToFile | ( | const char * | filename, |
std::ios_base::openmode | mode = std::ios_base::app |
||
) | const |
Definition at line 79 of file EEGData.cpp.
Referenced by DataIO::saveTrainingSessionToFile().
void EEGData::saveToFile | ( | std::ofstream & | ofs | ) | const |
Definition at line 96 of file EEGData.cpp.
|
inline |
Determine number of rows or channels.
Definition at line 83 of file EEGData.hpp.
Referenced by append(), FilterConfig::apply(), FilterConfig::getComponents(), DataProcess::process(), RealTimeClassification::timeoutFunction(), and FilterConfig::train().
|
inline |
Determine number of columns or samples.
Definition at line 85 of file EEGData.hpp.
Referenced by append(), and DataProcess::process().
void EEGData::splitData | ( | EEGData * | data1, |
EEGData * | data2, | ||
int | amount, | ||
DataSelectionMethod | selection | ||
) | const |
Definition at line 186 of file EEGData.cpp.
References DATA_SELECT_END, DATA_SELECT_MIDDLE, DATA_SELECT_START, and cppR::submatrixAssign().
|
friend |
Definition at line 53 of file EEGData.hpp.