MNE-CPP  beta 1.0
Public Member Functions | List of all members
MNEBrowseRawQt::DataPackage Class Reference

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)
 

Detailed Description

The DataPackage class provides central place to hold all program relevant data.

DataPackage...

Definition at line 88 of file datapackage.h.

Constructor & Destructor Documentation

DataPackage::DataPackage ( const MatrixXdR &  originalRawData = MatrixXdR(0,0),
const MatrixXdR &  originalRawTime = MatrixXdR(0,0),
int  cutFront = 0,
int  cutBack = 0 
)

Constructs a DataPackage.

Parameters
originalRawDatathe original raw data
originalRawTimethe original raw time data
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe amount to be cutted from orignal data from the back

Definition at line 58 of file datapackage.cpp.

Member Function Documentation

void DataPackage::applyFFTFilter ( int  channelNumber,
QSharedPointer< FilterOperator filter,
bool  useRawData = true 
)

FilterOperator::FilterOperator

Parameters
channelNumberthe channel to be filtered
filteroperator to use
useRawDataflag if filter should be used on already processed data or on raw data
Returns
a row vector truncated by numberFilterTaps/2 at front and end

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.

Returns
the mapped data

Definition at line 244 of file datapackage.cpp.

double DataPackage::dataProcMean ( int  row)

Returns the mean of the processed mapped data.

Parameters
rowthe row index
Returns
the mean value

Definition at line 252 of file datapackage.cpp.

const MatrixXdR & DataPackage::dataProcOrig ( )

Returns the processed original full data.

Returns
the mapped 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.

Returns
the mapped data

Definition at line 236 of file datapackage.cpp.

double DataPackage::dataRawMean ( int  row)

Returns the mean of the raw mapped data.

Parameters
rowthe row index
Returns
the mean value

Definition at line 263 of file datapackage.cpp.

const MatrixXdR & DataPackage::dataRawOrig ( )

Returns the original full raw data.

Returns
the mapped 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.

Parameters
originalProcDatathe original processed data
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe 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.

Parameters
originalProcDatathe original processed data in form of a row
rowthe row number
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe 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.

Parameters
originalProcDatathe original processed data
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe 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.

Parameters
originalProcDatathe original processed data in form of a row
rowthe row number
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe 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.

Parameters
originalRawDatathe original raw data
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe 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.

Parameters
originalRawDatathe original raw data in form of a row
rowthe row number
cutFrontthe amount to be cutted from orignal data from the front
cutBackthe amount to be cutted from orignal data from the back

Definition at line 107 of file datapackage.cpp.


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