Base Relacs Plugins
0.9.8
|
#include <transferfunction.h>
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 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) |
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) |
[RePro] Measures the transfer function with band-limited Gaussian white-noise stimuli.
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
) TransferFunction | ( | void | ) |
|
virtual |
Reimplemented from ConfigClass.
|
virtual |
|
virtual |
Implements RePro.
References TransferFunction::analyze(), OutData::back(), MultiPlot::back(), OutData::bandNoiseWave(), bartlett(), blackman(), blackmanHarris(), OutData::clear(), MultiPlot::clear(), SampleData< T >::clear(), clip(), OutData::constWave(), SampleData< T >::copy(), Array< T >::decibel(), MultiPlot::draw(), DaqError::error(), DaqError::failed(), hamming(), hanning(), SampleData< T >::interpolate(), TransferFunction::InUnit, OutData::length(), MultiPlot::lock(), TransferFunction::MeanCoherence, TransferFunction::MeanGain, TransferFunction::MeanPhase, TransferFunction::openTraceFile(), TransferFunction::OutUnit, TransferFunction::Overlap, TransferFunction::P, parzen(), MultiPlot::resetRanges(), TransferFunction::saveData(), TransferFunction::saveTrace(), OutData::setIdent(), OutData::setIntensity(), OutData::setTrace(), OutData::size(), TransferFunction::SpecSize, square(), TransferFunction::SquareCoherence, TransferFunction::SquareGain, TransferFunction::SquarePhase, TransferFunction::StdevCoherence, TransferFunction::StdevGain, TransferFunction::StdevPhase, Str::unit(), MultiPlot::unlock(), welch(), and TransferFunction::Window.
|
protected |
References gain(), hcMagnitude(), hcPhase(), mean(), TransferFunction::MeanCoherence, TransferFunction::MeanGain, TransferFunction::MeanPhase, TransferFunction::Overlap, SampleData< T >::size(), TransferFunction::SpecSize, sqrt(), TransferFunction::SquareCoherence, TransferFunction::SquareGain, TransferFunction::SquarePhase, TransferFunction::StdevCoherence, TransferFunction::StdevGain, TransferFunction::StdevPhase, transfer(), and TransferFunction::Window.
Referenced by TransferFunction::main().
References TableKey::addNumber(), TransferFunction::InName, TransferFunction::InUnit, TransferFunction::OutName, TransferFunction::OutUnit, and TableKey::saveKey().
Referenced by TransferFunction::main().
|
protected |
References SampleData< T >::pos(), TableKey::save(), and SampleData< T >::size().
Referenced by TransferFunction::main().
|
protected |
References TableKey::addNumber(), TransferFunction::InUnit, TransferFunction::MeanCoherence, TransferFunction::MeanGain, TransferFunction::MeanPhase, TransferFunction::OutUnit, SampleData< T >::pos(), TableKey::save(), TableKey::saveKey(), SampleData< T >::size(), TransferFunction::StdevCoherence, TransferFunction::StdevGain, and TransferFunction::StdevPhase.
Referenced by TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::notify(), and TransferFunction::openTraceFile().
|
protected |
|
protected |
Referenced by TransferFunction::notify(), and TransferFunction::openTraceFile().
|
protected |
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::analyze(), and TransferFunction::main().
|
protected |
Referenced by TransferFunction::analyze(), TransferFunction::main(), and TransferFunction::saveData().
|
protected |
Referenced by TransferFunction::main(), and TransferFunction::TransferFunction().