Base Relacs Plugins  0.9.8
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TransferFunction Class Reference

#include <transferfunction.h>

Inheritance diagram for TransferFunction:
Inheritance graph
[legend]
Collaboration diagram for TransferFunction:
Collaboration graph
[legend]

Public Member Functions

 TransferFunction (void)
 
virtual void preConfig (void)
 
virtual void notify (void)
 
virtual int main (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 OptWidgetdialogOptions (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)
 

Protected Member Functions

void analyze (const SampleDataF &input, const SampleDataF &output, double duration, int count)
 
void openTraceFile (ofstream &tf, TableKey &tracekey, const Options &header)
 
void saveTrace (ofstream &tf, TableKey &tracekey, int index, const SampleDataF &input, const SampleDataF &output)
 
void saveData (const Options &header)
 
- Protected Member Functions inherited from ConfigDialog
void setDialogOpen (bool open=true)
 
void setHelpOpen (bool open=true)
 

Protected Attributes

int SpecSize
 
bool Overlap
 
double(* Window )(int j, int n)
 
string InName
 
string InUnit
 
string OutName
 
string OutUnit
 
SampleDataD MeanGain
 
SampleDataD SquareGain
 
SampleDataD StdevGain
 
SampleDataD MeanPhase
 
SampleDataD SquarePhase
 
SampleDataD StdevPhase
 
SampleDataD MeanCoherence
 
SampleDataD SquareCoherence
 
SampleDataD StdevCoherence
 
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)
 

Detailed Description

[RePro] Measures the transfer function with band-limited Gaussian white-noise stimuli.

Author
Jan Benda
Version
1.8 (Jul 11, 2016)
Screenshot
transferfunction.png
Options
  • Stimulus
    • outtrace=V-1: Output trace (string)
    • offsetbase=custom: Set offset relative to (string)
    • offset=0V: Offset (number)
    • amplitude=1V: Amplitude (number)
    • clip=4: Multiple of amplitude where to clip signal (number)
    • intensity=1: Intensity for an attenuator (number)
    • fmin=0Hz: Minimum frequency (number)
    • fmax=1000Hz: Maximum frequency (number)
    • duration=1000ms: Duration of noise stimulus (number)
    • pause=1000ms: Length of pause inbetween successive stimuli (number)
    • repeats=100: Repeats (integer)
  • Analysis
    • intrace=V-1: Input trace (string)
    • size=1024: Number of data points for FFT (string)
    • overlap=true: Overlap FFT windows (boolean)
    • window=Hanning: FFT window function (string)
    • plotstdevs=true: Plot standard deviations (boolean)
    • plotcoherence=true: Plot coherence (boolean)
    • plotdecibel=false: Plot gain in decibel (boolean)

Constructor & Destructor Documentation

TransferFunction ( void  )

Member Function Documentation

void preConfig ( void  )
virtual

Reimplemented from ConfigClass.

void notify ( void  )
virtual
int main ( void  )
virtual
void analyze ( const SampleDataF input,
const SampleDataF output,
double  duration,
int  count 
)
protected
void openTraceFile ( ofstream &  tf,
TableKey tracekey,
const Options header 
)
protected
void saveTrace ( ofstream &  tf,
TableKey tracekey,
int  index,
const SampleDataF input,
const SampleDataF output 
)
protected
void saveData ( const Options header)
protected

Member Data Documentation

int SpecSize
protected
bool Overlap
protected
double(* Window)(int j, int n)
protected
string InName
protected
string InUnit
protected
string OutName
protected
string OutUnit
protected
SampleDataD MeanGain
protected
SampleDataD SquareGain
protected
SampleDataD StdevGain
protected
SampleDataD MeanPhase
protected
SampleDataD SquarePhase
protected
SampleDataD StdevPhase
protected
SampleDataD MeanCoherence
protected
SampleDataD SquareCoherence
protected
SampleDataD StdevCoherence
protected
MultiPlot P
protected

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