SpikeStream Application Library
0.2
|
#include <AbstractSpectrogramData.h>
Public Member Functions | |
AbstractSpectrogramData (const AnalysisInfo &analysisInfo) | |
virtual | ~AbstractSpectrogramData () |
virtual QwtRasterData * | copy () const =0 |
virtual QwtDoubleInterval | range () const |
virtual void | showAllTimeSteps (bool show) |
virtual void | showSelectedTimeStep (unsigned int timeStep) |
virtual void | setShowNeuronIDs (bool show) |
virtual double | value (double x, double y) const |
Protected Member Functions | |
void | addAllTimeStepsMap (const QList< unsigned int > &neurIDList) |
void | addTimeStep (unsigned int timeStep, const QList< unsigned int > &neurIDList) |
virtual void | loadData ()=0 |
virtual void | printData () |
virtual void | reset () |
Protected Attributes | |
AnalysisInfo | analysisInfo |
QHash< unsigned int, QHash < unsigned int, QHash < unsigned int, double > > > | timeStepDataMap |
unsigned int | minNeuronID |
unsigned int | maxNeuronID |
int | selectedTimeStep |
bool | allTimeSteps |
unsigned int | allTimeStepsKey |
bool | showNeuronIDs |
Abstract spectrogram class that can be used to display information spectrograms for different types of analysis.
Definition at line 17 of file AbstractSpectrogramData.h.
AbstractSpectrogramData::AbstractSpectrogramData | ( | const AnalysisInfo & | analysisInfo | ) |
Constructor
Definition at line 16 of file AbstractSpectrogramData.cpp.
AbstractSpectrogramData::~AbstractSpectrogramData | ( | ) | [virtual] |
Destructor
Definition at line 24 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::addAllTimeStepsMap | ( | const QList< unsigned int > & | neurIDList | ) | [protected] |
Calculates the average over all time steps
Definition at line 129 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::addTimeStep | ( | unsigned int | timeStep, |
const QList< unsigned int > & | neurIDList | ||
) | [protected] |
Adds a time step to the data map with entries for all the neuron ids
Definition at line 111 of file AbstractSpectrogramData.cpp.
QwtRasterData * AbstractSpectrogramData::copy | ( | ) | const [pure virtual] |
Inherited from QwtRasterData
Definition at line 34 of file AbstractSpectrogramData.cpp.
virtual void spikestream::AbstractSpectrogramData::loadData | ( | ) | [protected, pure virtual] |
void AbstractSpectrogramData::printData | ( | ) | [protected, virtual] |
Prints out the data
Definition at line 173 of file AbstractSpectrogramData.cpp.
QwtDoubleInterval AbstractSpectrogramData::range | ( | ) | const [virtual] |
Inherited from QwtRasterData
Definition at line 40 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::reset | ( | ) | [protected, virtual] |
Resets the data
Definition at line 190 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::setShowNeuronIDs | ( | bool | show | ) | [virtual] |
Controls whether neuron ids or the numbers 1,2,...
Definition at line 58 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::showAllTimeSteps | ( | bool | show | ) | [virtual] |
Controls whether the average over all time steps is shown
Definition at line 52 of file AbstractSpectrogramData.cpp.
void AbstractSpectrogramData::showSelectedTimeStep | ( | unsigned int | timeStep | ) | [virtual] |
Sets the current time step that is being plotted
Definition at line 46 of file AbstractSpectrogramData.cpp.
double AbstractSpectrogramData::value | ( | double | x, |
double | y | ||
) | const [virtual] |
Inherited from QwtRasterData
Definition at line 69 of file AbstractSpectrogramData.cpp.
bool spikestream::AbstractSpectrogramData::allTimeSteps [protected] |
Average over all time steps is shown
Definition at line 48 of file AbstractSpectrogramData.h.
unsigned int spikestream::AbstractSpectrogramData::allTimeStepsKey [protected] |
Key pointing to unused time step value
Definition at line 51 of file AbstractSpectrogramData.h.
AnalysisInfo spikestream::AbstractSpectrogramData::analysisInfo [protected] |
Information about the analysis
Definition at line 31 of file AbstractSpectrogramData.h.
unsigned int spikestream::AbstractSpectrogramData::maxNeuronID [protected] |
Maximum neuron id to set the bounding rectangle
Definition at line 42 of file AbstractSpectrogramData.h.
unsigned int spikestream::AbstractSpectrogramData::minNeuronID [protected] |
Minimum neuron id to set the bounding rectangle
Definition at line 39 of file AbstractSpectrogramData.h.
int spikestream::AbstractSpectrogramData::selectedTimeStep [protected] |
Current time step that is being displayed
Definition at line 45 of file AbstractSpectrogramData.h.
bool spikestream::AbstractSpectrogramData::showNeuronIDs [protected] |
Neuron IDs are displayed instead of numbers from 1
Definition at line 54 of file AbstractSpectrogramData.h.
QHash<unsigned int, QHash<unsigned int, QHash<unsigned int, double> > > spikestream::AbstractSpectrogramData::timeStepDataMap [protected] |
Holds the processed data from the analysis. Key1 is the time step, key2 is the first neuron id key3 is the second neuron id data is the integration between the neurons
Definition at line 36 of file AbstractSpectrogramData.h.