efish Relacs Plugins
0.9.8
|
#include <chirps.h>
Public Member Functions | |
Chirps (void) | |
virtual int | main (void) |
virtual void | sessionStarted (void) |
virtual void | sessionStopped (bool saved) |
void | stop (void) |
void | saveChirps (void) |
void | saveChirpTraces (void) |
void | saveChirpSpikes (int trace) |
void | saveChirpNerve (void) |
void | saveAmplitude (void) |
void | saveSpikes (int trace) |
void | saveChirpRate (int trace) |
void | saveNerve (void) |
void | save (void) |
void | plot (void) |
void | analyze (void) |
Public Member Functions inherited from ConfigDialog | |
ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__) | |
virtual | ~ConfigDialog (void) |
string | name (void) const |
virtual void | setName (const string &name) |
string | author (void) const |
virtual void | setAuthor (const string &author) |
string | version (void) const |
virtual void | setVersion (const string &version) |
string | date (void) const |
virtual void | setDate (const string &date) |
virtual OptWidget * | dialogOptions (OptDialog *od, string *tabhotkeys=0) |
virtual void | dialogButtons (OptDialog *od) |
virtual void | dialogEmptyMessage (OptDialog *od) |
int | dialogSelectMask (void) const |
void | setDialogSelectMask (int mask) |
void | addDialogSelectMask (int mask) |
int | dialogReadOnlyMask (void) const |
void | setDialogReadOnlyMask (int mask) |
void | addDialogReadOnlyMask (int mask) |
int | dialogStyle (void) const |
void | setDialogStyle (int style) |
void | addDialogStyle (int style) |
string | dialogCaption (void) const |
void | setDialogCaption (const string &caption) |
bool | dialogHeader (void) const |
void | setDialogHeader (bool d) |
string | headerBackgroundColor (void) const |
void | setHeaderBackgroundColor (const string &color) |
string | headerForegroundColor (void) const |
void | setHeaderForegroundColor (const string &color) |
string | headerImageFile (void) const |
void | setHeaderImageFile (const string &file) |
virtual void | dialogHeaderWidget (OptDialog *od) |
bool | dialogHelp (void) const |
void | setDialogHelp (bool d) |
string | helpCaption (void) const |
void | setHelpCaption (const string &caption) |
string | helpPath (int inx=0) const |
int | helpPathes (void) const |
void | clearHelpPathes (void) |
void | setHelpPath (const string &path) |
void | addHelpPath (const string &path) |
virtual string | helpFileName (void) const |
bool | dialogOpen (void) const |
bool | helpOpen (void) const |
QWidget * | mainWidget (void) |
virtual void | setMainWidget (QWidget *widget) |
void | lock () const |
void | unlock () const |
bool | tryLock (int timeout=1) |
QMutex * | mutex (void) |
Public Member Functions inherited from ConfigClass | |
ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0) | |
ConfigClass (const ConfigClass &C) | |
virtual | ~ConfigClass (void) |
const string & | configIdent (void) const |
void | setConfigIdent (const string &ident) |
int | configGroup (void) const |
void | setConfigGroup (int group) |
int | configMode (void) const |
void | setConfigMode (int mode) |
void | addConfigMode (int mode) |
void | delConfigMode (int mode) |
int | configSelectMask (void) const |
void | setConfigSelectMask (int mask) |
void | addConfig (void) |
void | readConfig (void) |
virtual void | readConfig (StrQueue &sq) |
virtual void | saveConfig (ofstream &str) |
virtual int | configSize (void) const |
virtual void | config (void) |
virtual void | preConfig (void) |
Additional Inherited Members | |
Public Types inherited from ConfigClass | |
enum | Action |
Public Slots inherited from ConfigDialog | |
virtual void | dialog (void) |
virtual void | help (void) |
virtual void | notifyDialog (const Options &opt) |
Signals inherited from ConfigDialog | |
void | dialogAccepted (void) |
void | dialogAction (int r) |
void | dialogClosed (int r) |
Static Public Member Functions inherited from ConfigClass | |
static void | setConfigureClasses (ConfigureClasses *cfg) |
Protected Slots inherited from ConfigDialog | |
void | notificationFromDialog (const Parameter &p) |
virtual void | dClosed (int r) |
virtual void | hClosed (int r) |
Protected Member Functions inherited from ConfigDialog | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
Protected Attributes inherited from ConfigDialog | |
Options | DialogOptions |
[RePro] Measures responses to chirps.
integer
): Number of chirps per stimulus.number
, ms): Minimum time between chirps (AM only).number
, ms): Time preceeding first chirp (AM only).number
, ms): Pause between successive stimuli.number
, Hz): Beat frequency.number
, %): Contrast (AM amplitude / EOD amplitude)number
, Hz): Size of the chirp.number
, ms): Width of the chirp.number
): Kurtosis of Gaussian chirp (>1 broader, <1 narrower).number
, %): Reduction of EOD amplitude during a chirp.integer
): Number of stimulus repetitions (0: infinite).integer
): Number of beat positions used for analysis.number
, ms): Resolution of firing rate.boolean
): AM stimulus or direct stimulus.boolean
): If direct stimulus: use sine wave or the fishes EOD.boolean
): Record transdermal amplitude evoked by direct stimulus and replay it as an AM stimulus.EODEvents1
). Recommended if direct stimulation is used.EODTrace2
) and events (EODEvents2
).SignalEvents1
) if direct stimuli are used.SpikeEvents
[*]) or nerve recordings (NerveTrace1
). Chirps | ( | void | ) |
|
virtual |
Implements RePro.
References Chirps::analyze(), Map< T >::assign(), DaqError::busy(), SampleData< T >::clear(), EventData::clear(), Map< T >::clear(), DataFile::col(), TableData::columns(), DataFile::data(), DataFile::dataLines(), Array< T >::empty(), DaqError::error(), DaqError::errorStr(), DaqError::errorText(), DataFile::key(), maxAbs(), maxIndex(), DataFile::metaDataOptions(), DaqError::OverflowUnderrun, Chirps::plot(), DataFile::read(), Chirps::save(), Chirps::saveAmplitude(), Chirps::saveChirpNerve(), Chirps::saveChirps(), Chirps::saveChirpSpikes(), Chirps::saveChirpTraces(), Chirps::saveNerve(), Chirps::saveSpikes(), OutData::setIntensity(), OutData::setPriority(), OutData::setStartSource(), TableKey::setUnit(), Chirps::stop(), DaqError::success(), and TableKey::unit().
|
virtual |
|
virtual |
void stop | ( | void | ) |
References Array< T >::clear(), EventData::clear(), Map< T >::free(), and SampleData< T >::free().
Referenced by Chirps::main().
void saveChirps | ( | void | ) |
References TableKey::save(), and TableKey::saveKey().
Referenced by Chirps::main().
void saveChirpTraces | ( | void | ) |
References TableKey::save(), and TableKey::saveKey().
Referenced by Chirps::main().
void saveChirpSpikes | ( | int | trace | ) |
References TableKey::save(), and TableKey::saveKey().
Referenced by Chirps::main().
void saveChirpNerve | ( | void | ) |
References Map< T >::empty(), SampleData< T >::empty(), SampleData< T >::pos(), TableKey::save(), TableKey::saveKey(), Map< T >::x(), and Map< T >::y().
Referenced by Chirps::main().
void saveAmplitude | ( | void | ) |
References TableKey::save(), TableKey::saveKey(), Map< T >::size(), Map< T >::x(), and Map< T >::y().
Referenced by Chirps::main().
void saveSpikes | ( | int | trace | ) |
References TableKey::save(), TableKey::saveKey(), and EventData::size().
Referenced by Chirps::main().
void saveChirpRate | ( | int | trace | ) |
References TableKey::addNumber(), TableKey::save(), and TableKey::saveKey().
Referenced by Chirps::save().
void saveNerve | ( | void | ) |
References Map< T >::empty(), SampleData< T >::empty(), SampleData< T >::pos(), TableKey::save(), TableKey::saveKey(), SampleData< T >::size(), Map< T >::size(), Map< T >::x(), and Map< T >::y().
Referenced by Chirps::main().
void save | ( | void | ) |
References Chirps::saveChirpRate().
Referenced by Chirps::main().
void plot | ( | void | ) |
References MultiPlot::clear(), MultiPlot::draw(), MultiPlot::lock(), and MultiPlot::unlock().
Referenced by Chirps::main().
void analyze | ( | void | ) |
References average(), EventList::back(), InData::begin(), EventData::begin(), Map< T >::clear(), SampleData< T >::clear(), EventData::copy(), InData::end(), EventData::eventSize(), floor(), EventData::frequency(), EventList::front(), Detector< DataIter, TimeIter >::init(), InData::mean(), EventData::next(), Detector< DataIter, TimeIter >::peakTrough(), SampleData< T >::pos(), EventData::previous(), Map< T >::push(), Array< T >::push(), Map< T >::reserve(), GaussKernel::setStdev(), SampleData< T >::size(), EventData::size(), EventList::size(), Map< T >::size(), Array< T >::size(), InData::stdev(), EventIterator::time(), InData::timeBegin(), and Map< T >::x().
Referenced by Chirps::main().