Auditory Relacs Plugins
0.9.8
|
#include <syslatency.h>
Public Member Functions | |
SysLatency (void) | |
~SysLatency (void) | |
virtual int | main (void) |
void | saveSpikes (Options &header, const EventList &spikes) |
void | saveTrigger (Options &header, const ArrayD &trigger) |
void | saveCoincidentSpikes (Options &header, const MapD &coincidentspikes) |
void | savePRC (Options &header, const MapD &prc) |
void | save (double carrierfrequency, int side, double pduration, double intensity, const EventList &spikes, const ArrayD &trigger, const MapD &coincidentspikes, const MapD &prc, double spikewidth, double latency, double latencysd, int maxcoincidence, double coinclatency, double offset, double slope, double meanrate) |
void | plot (const MapD &coincidentspikes, const MapD &prc, double coinclatency, double offset, double slope, double meanrate) |
void | analyze (double duration, double skipwin, double analysewin, double pduration, double coincwin, double maxlatency, double latencystep, EventList &spikes, const ArrayD &trigger, MapD &coincidentspikes, MapD &prc, double &spikewidth, double &latency, double &latencysd, int &maxcoincidence, double &coinclatency, double &offset, double &slope, double &meanrate) |
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) |
Public Member Functions inherited from StandardTraces | |
StandardTraces (void) | |
Protected Member Functions | |
int | coincidentSpikes (double coincwin, double latency, double offset, const EventList &spikes, const ArrayD &trigger) |
void | phaseResponse (double duration, double skipwin, double analysewin, double latency, const EventList &spikes, const ArrayD &trigger, MapD &prc) |
Protected Member Functions inherited from ConfigDialog | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
Protected Attributes | |
MultiPlot | P |
Protected Attributes inherited from ConfigDialog | |
Options | DialogOptions |
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) |
Static Protected Member Functions inherited from StandardTraces | |
static void | clearIndices (int *traceindices, int n=-1) |
static void | initStandardTraces (const InList &data, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
static void | initStandardEventTraces (const InList &data, const EventList &events, int *ntraces, int *traceindices, int *eventindices, const string *tracenames, const string *eventnames, string &tracenamelist, string &eventnamelist, bool alpha=false) |
static void | initStandardOutputs (const RELACSPlugin *rp, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
Static Protected Attributes inherited from StandardTraces | |
static const int | MaxTraces |
[RePro] Measures latency of the whole system, i.e. signal delay, transduction, synapses, axonal delay, ...
rate=100Hz
: Target firing rate (number
)pwaves=10
: Number of cycles of pertubation (integer
)pintensity=10dB
: Intensity of pertubations (number
)minpintensity=4dB
: Minimum intensity of pertubations (number
)carrierfreq=5kHz
: Frequency of carrier (number
)usebestfreq=true:
Use the cell's best frequency (boolean
)ramp=2ms
: Ramp of stimulus (number
)duration=600ms
: Duration of stimulus (number
)pause=600ms
: Pause (number
)repeats=10
: Number of stimulus repetitions (integer
)side=left:
Speaker (string
)skipwin=100ms
: Initial portion of stimulus not used for analysis (number
)analysewin=10ms
: Window used for ISI analysis (number
)maxlat=10ms
: Maximum latency (number
)latstep=0.1ms
: Resolution of latency (number
)coincwin=0.5ms
: Window width for coincident spikes (number
)SysLatency | ( | void | ) |
Constructor.
References MultiPlot::lock(), SysLatency::P, MultiPlot::resize(), and MultiPlot::unlock().
~SysLatency | ( | void | ) |
Destructor.
|
virtual |
Implements RePro.
References SysLatency::analyze(), OutData::append(), OutData::capacity(), DaqError::clearError(), OutData::duration(), Map< T >::empty(), DaqError::error(), DaqError::errorText(), Session::fICurve(), OutData::indices(), OutData::intensity(), MultiPlot::lock(), relacs::maxIndex(), DaqError::overflow(), SysLatency::P, SysLatency::plot(), Array< T >::push(), OutData::ramp(), Array< T >::reserve(), OutData::reserve(), Map< T >::reserve(), SysLatency::save(), OutData::setBestSample(), OutData::setIdent(), OutData::setIntensity(), OutData::setTrace(), SampleData< T >::sin(), OutData::size(), Map< T >::size(), Array< T >::size(), Session::ssFICurve(), OutData::stepsize(), MultiPlot::unlock(), Map< T >::x(), and Map< T >::y().
References TableKey::addNumber(), TableKey::saveKey(), and EventList::saveText().
Referenced by SysLatency::save().
References TableKey::addNumber(), TableKey::save(), TableKey::saveKey(), and Array< T >::size().
Referenced by SysLatency::save().
References TableKey::addNumber(), TableKey::save(), TableKey::saveKey(), Map< T >::size(), Map< T >::x(), and Map< T >::y().
Referenced by SysLatency::save().
References TableKey::addNumber(), TableKey::save(), TableKey::saveKey(), Map< T >::size(), Map< T >::x(), and Map< T >::y().
Referenced by SysLatency::save().
void save | ( | double | carrierfrequency, |
int | side, | ||
double | pduration, | ||
double | intensity, | ||
const EventList & | spikes, | ||
const ArrayD & | trigger, | ||
const MapD & | coincidentspikes, | ||
const MapD & | prc, | ||
double | spikewidth, | ||
double | latency, | ||
double | latencysd, | ||
int | maxcoincidence, | ||
double | coinclatency, | ||
double | offset, | ||
double | slope, | ||
double | meanrate | ||
) |
References SysLatency::saveCoincidentSpikes(), SysLatency::savePRC(), SysLatency::saveSpikes(), SysLatency::saveTrigger(), Array< T >::size(), and EventList::size().
Referenced by SysLatency::main().
void plot | ( | const MapD & | coincidentspikes, |
const MapD & | prc, | ||
double | coinclatency, | ||
double | offset, | ||
double | slope, | ||
double | meanrate | ||
) |
Plot data.
References MultiPlot::clear(), MultiPlot::draw(), MultiPlot::lock(), SysLatency::P, and MultiPlot::unlock().
Referenced by SysLatency::main().
void analyze | ( | double | duration, |
double | skipwin, | ||
double | analysewin, | ||
double | pduration, | ||
double | coincwin, | ||
double | maxlatency, | ||
double | latencystep, | ||
EventList & | spikes, | ||
const ArrayD & | trigger, | ||
MapD & | coincidentspikes, | ||
MapD & | prc, | ||
double & | spikewidth, | ||
double & | latency, | ||
double & | latencysd, | ||
int & | maxcoincidence, | ||
double & | coinclatency, | ||
double & | offset, | ||
double & | slope, | ||
double & | meanrate | ||
) |
Analyze data.
References Map< T >::clear(), SysLatency::coincidentSpikes(), EventList::latency(), Map< T >::lineFit(), SysLatency::phaseResponse(), EventList::push(), Map< T >::push(), EventList::rate(), Map< T >::reserve(), EventList::size(), Map< T >::size(), Map< T >::x(), and Map< T >::y().
Referenced by SysLatency::main().
|
protected |
References EventList::size(), and Array< T >::size().
Referenced by SysLatency::analyze().
|
protected |
References Array< T >::back(), Map< T >::clear(), Map< T >::push(), EventList::size(), and Array< T >::size().
Referenced by SysLatency::analyze().
|
protected |
Referenced by SysLatency::main(), SysLatency::plot(), and SysLatency::SysLatency().