MNE-CPP
beta 1.0
|
The DataPackage class provides central place to hold all program relevant data. More...
#include <datapackage.h>
Public Member Functions | |
DataPackage (const MatrixXdR &originalRawData=MatrixXdR(0, 0), const MatrixXdR &originalRawTime=MatrixXdR(0, 0), int cutFront=0, int cutBack=0) | |
void | setOrigRawData (const MatrixXdR &originalRawData, int cutFront=0, int cutBack=0) |
void | setOrigRawData (const RowVectorXd &originalRawData, int row, int cutFront=0, int cutBack=0) |
void | setOrigProcData (const MatrixXdR &originalProcData, int cutFront=0, int cutBack=0) |
void | setMappedProcData (const MatrixXdR &originalProcData, int cutFront, int cutBack) |
void | setOrigProcData (const RowVectorXd &originalProcData, int row, int cutFront=0, int cutBack=0) |
void | setMappedProcData (const RowVectorXd &originalProcData, int row, int cutFront, int cutBack) |
const MatrixXdR & | dataRawOrig () |
const MatrixXdR & | dataRaw () |
const MatrixXdR & | dataProcOrig () |
const MatrixXdR & | dataProc () |
double | dataProcMean (int row) |
double | dataRawMean (int row) |
void | applyFFTFilter (int channelNumber, QSharedPointer< FilterOperator > filter, bool useRawData=true) |
The DataPackage class provides central place to hold all program relevant data.
DataPackage...
Definition at line 88 of file datapackage.h.
DataPackage::DataPackage | ( | const MatrixXdR & | originalRawData = MatrixXdR(0,0) , |
const MatrixXdR & | originalRawTime = MatrixXdR(0,0) , |
||
int | cutFront = 0 , |
||
int | cutBack = 0 |
||
) |
Constructs a DataPackage.
originalRawData | the original raw data |
originalRawTime | the original raw time data |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 58 of file datapackage.cpp.
void DataPackage::applyFFTFilter | ( | int | channelNumber, |
QSharedPointer< FilterOperator > | filter, | ||
bool | useRawData = true |
||
) |
FilterOperator::FilterOperator
channelNumber | the channel to be filtered |
filter | operator to use |
useRawData | flag if filter should be used on already processed data or on raw data |
Definition at line 274 of file datapackage.cpp.
const MatrixXdR & DataPackage::dataProc | ( | ) |
Returns the processed data mapped to i.e. fit the current window size.
Definition at line 244 of file datapackage.cpp.
double DataPackage::dataProcMean | ( | int | row | ) |
Returns the mean of the processed mapped data.
row | the row index |
Definition at line 252 of file datapackage.cpp.
const MatrixXdR & DataPackage::dataProcOrig | ( | ) |
Returns the processed original full data.
Definition at line 228 of file datapackage.cpp.
const MatrixXdR & DataPackage::dataRaw | ( | ) |
Returns the raw data mapped i.e. to fit the current window size.
Definition at line 236 of file datapackage.cpp.
double DataPackage::dataRawMean | ( | int | row | ) |
Returns the mean of the raw mapped data.
row | the row index |
Definition at line 263 of file datapackage.cpp.
const MatrixXdR & DataPackage::dataRawOrig | ( | ) |
Returns the original full raw data.
Definition at line 220 of file datapackage.cpp.
void DataPackage::setMappedProcData | ( | const MatrixXdR & | originalProcData, |
int | cutFront, | ||
int | cutBack | ||
) |
Sets the mapped processed data matrix calculated.
originalProcData | the original processed data |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 154 of file datapackage.cpp.
void DataPackage::setMappedProcData | ( | const RowVectorXd & | originalProcData, |
int | row, | ||
int | cutFront, | ||
int | cutBack | ||
) |
Sets a row of the mapped processed data matrix read from the file.
originalProcData | the original processed data in form of a row |
row | the row number |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 198 of file datapackage.cpp.
void DataPackage::setOrigProcData | ( | const MatrixXdR & | originalProcData, |
int | cutFront = 0 , |
||
int | cutBack = 0 |
||
) |
Sets the original long processed data matrix calculated. Optional: Also cuts the original processed data to a specific size.
originalProcData | the original processed data |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 133 of file datapackage.cpp.
void DataPackage::setOrigProcData | ( | const RowVectorXd & | originalProcData, |
int | row, | ||
int | cutFront = 0 , |
||
int | cutBack = 0 |
||
) |
Sets a row of the original long processed data matrix read from the file. Optional: Also cuts the original processed data to a specific size.
originalProcData | the original processed data in form of a row |
row | the row number |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 172 of file datapackage.cpp.
void DataPackage::setOrigRawData | ( | const MatrixXdR & | originalRawData, |
int | cutFront = 0 , |
||
int | cutBack = 0 |
||
) |
Sets the original long raw data matrix read from the file. Optional: Also cuts the original raw data to a specific size.
originalRawData | the original raw data |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 86 of file datapackage.cpp.
void DataPackage::setOrigRawData | ( | const RowVectorXd & | originalRawData, |
int | row, | ||
int | cutFront = 0 , |
||
int | cutBack = 0 |
||
) |
Sets a row of the original long raw data matrix read from the file. Optional: Also cuts the original raw data to a specific size.
originalRawData | the original raw data in form of a row |
row | the row number |
cutFront | the amount to be cutted from orignal data from the front |
cutBack | the amount to be cutted from orignal data from the back |
Definition at line 107 of file datapackage.cpp.