|
Stimfit @PACKAGE_VERSION@
|

Classes | |
| class | Channel |
| A Channel contains several data Sections representing observations of the same physical quantity. More... | |
| class | Recording |
| Represents the data within a file. More... | |
| class | Section |
| Represents a continuously sampled sweep of data points. More... | |
| struct | stfnum::parInfo |
| Information about parameters used in storedFunc. More... | |
| class | stfnum::Table |
| A table used for printing information. More... | |
| struct | stfnum::storedFunc |
| Function used for least-squares fitting. More... | |
| class | stf::wxProgressInfo |
| Progress Info interface adapter; maps to wxProgressDialog. More... | |
| struct | stf::UserInput |
| Represents user input from dialogs that can be used in plugins. More... | |
| struct | stf::Plugin |
| User-defined plugin. More... | |
| struct | stf::Extension |
| User-defined Python extension. More... | |
| struct | stf::ifstreamMan |
| Resource manager for ifstream objects. More... | |
| struct | stf::ofstreamMan |
| Resource manager for ofstream objects. More... | |
| class | stf::Event |
| Describes the attributes of an event. More... | |
| struct | stf::PyMarker |
| A marker that can be set from Python. More... | |
| struct | stf::SectionAttributes |
| struct | stf::SectionPointer |
Typedefs | |
| typedef boost::function< double(double, const Vector_double &)> | stfnum::Func |
| A function taking a double and a vector and returning a double. | |
| typedef boost::function< Vector_double(double, const Vector_double &)> | stfnum::Jac |
| The jacobian of a stfnum::Func. | |
| typedef boost::function< double(double, double, double, double, double)> | stfnum::Scale |
| Scaling function for fit parameters. | |
| typedef boost::function< Table(const Vector_double &, const std::vector< stfnum::parInfo >, double)> | stfnum::Output |
| Print the output of a fit into a stfnum::Table. | |
| typedef boost::function< void(const Vector_double &, double, double, double, double, double, Vector_double &)> | stfnum::Init |
| Initialising function for the parameters in stfnum::Func to start a fit. | |
| typedef boost::function< Recording(const Recording &, const Vector_double &, std::map< std::string, double > &)> | stf::PluginFunc |
| Get a Recording, do something with it, return the new Recording. | |
Functions | |
| Channel::Channel (void) | |
| Default constructor. | |
| Channel::Channel (const Section &c_Section) | |
| Constructor. | |
| Channel::Channel (const std::deque< Section > &SectionList) | |
| Constructor. | |
| Channel::Channel (std::size_t c_n_sections, std::size_t section_size=0) | |
| Constructor. | |
| Channel::~Channel () | |
| Destructor. | |
| Section & | Channel::operator[] (std::size_t at_) |
| Unchecked access to a section (read and write) | |
| const Section & | Channel::operator[] (std::size_t at_) const |
| Unchecked access to a section (read-only) | |
| const std::string & | Channel::GetChannelName () const |
| Retrieves the channel name. | |
| const std::string & | Channel::GetYUnits () const |
| Retrieves the y units string. | |
| size_t | Channel::size () const |
| Retrieves the size of the section array. | |
| const Section & | Channel::at (std::size_t at_) const |
| Range-checked access to a section (read-only). | |
| Section & | Channel::at (std::size_t at_) |
| Range-checked access to a section (read and write). | |
| const std::deque< Section > & | Channel::get () const |
| Low-level access to the section array (read-only). | |
| std::deque< Section > & | Channel::get () |
| Low-level access to the section array (read and write). | |
| void | Channel::SetChannelName (const std::string &value) |
| Sets the channel name. | |
| void | Channel::SetYUnits (const std::string &value) |
| Sets the y units string. | |
| void | Channel::InsertSection (const Section &c_Section, std::size_t pos) |
| Inserts a section at the given position, overwriting anything that's currently stored at that position. | |
| void | Channel::resize (std::size_t newSize) |
| Resize the section array. | |
| void | Channel::reserve (std::size_t resSize) |
| Reserve memory for a number of sections. | |
| Recording::Recording () | |
| Default constuctor. | |
| Recording::Recording (const Channel &c_Channel) | |
| Constructor. | |
| Recording::Recording (const std::deque< Channel > &ChannelList) | |
| Constructor. | |
| Recording::Recording (std::size_t c_n_channels, std::size_t c_n_sections=0, std::size_t c_n_points=0) | |
| Constructor. | |
| virtual | Recording::~Recording () |
| Destructor. | |
| std::size_t | Recording::GetChannelSize (std::size_t n_channel) const |
| Retrieves the number of sections in a channel. | |
| const std::deque< Channel > & | Recording::get () const |
| Retrieves the channels (read-only). | |
| std::deque< Channel > & | Recording::get () |
| Retrieves the channels (read and write). | |
| const std::string & | Recording::GetFileDescription () const |
| Retrieves the file description. | |
| const std::string & | Recording::GetGlobalSectionDescription () const |
| Retrieves the common section description. | |
| const std::string & | Recording::GetScaling () const |
| Retrieves the scaling as a string. | |
| struct tm | Recording::GetDateTime () const |
| Retrieves the date of recording as a string. | |
| const std::string & | Recording::GetComment () const |
| Retrieves a comment string. | |
| const std::string & | Recording::GetXUnits () const |
| Retrieves the x units. | |
| std::size_t | Recording::size () const |
| Retrieves the size of the channel array. | |
| double | Recording::GetXScale () const |
| Retrieves the x scaling (sampling interval). | |
| double | Recording::GetSR () const |
| Retrieves the sampling rate ( 1 / x-scale ) | |
| std::size_t | Recording::GetCurChIndex () const |
| Retrieves the index of the current channel. | |
| std::size_t | Recording::GetSecChIndex () const |
| Retrieves the index of the second channel. | |
| std::size_t | Recording::GetCurSecIndex () const |
| Retrieves the index of the current section. | |
| const std::vector< std::size_t > & | Recording::GetSelectedSections () const |
| Retrieves the indices of the selected sections (read-only). | |
| std::vector< std::size_t > & | Recording::GetSelectedSectionsW () |
| Retrieves the indices of the selected sections (read and write). | |
| const Vector_double & | Recording::GetSelectBase () const |
| Retrieves the stored baseline values of the selected sections (read-only). | |
| Vector_double & | Recording::GetSelectBaseW () |
| Retrieves the stored baseline values of the selected sections (read and write). | |
| const Section & | Recording::cursec () const |
| Retrieves the currently accessed section in the active channel (read-only) | |
| Section & | Recording::cursec () |
| Retrieves the currently accessed section in the active channel (read and write) | |
| const Section & | Recording::secsec () const |
| Retrieves the currently accessed section in the second (reference) channel (read-only) | |
| const Channel & | Recording::curch () const |
| Retrieves the active channel (read-only) | |
| Channel & | Recording::curch () |
| Retrieves active channel (read and write) | |
| const Channel & | Recording::secch () const |
| Retrieves the second (reference) channel (read-only) | |
| const Channel & | Recording::at (std::size_t n_c) const |
| Range-checked access to a channel (read-only). | |
| Channel & | Recording::at (std::size_t n_c) |
| Range-checked access to a channel (read and write). | |
| void | Recording::SetFileDescription (const std::string &value) |
| Sets the file description. | |
| void | Recording::SetGlobalSectionDescription (const std::string &value) |
| Sets the common section description. | |
| void | Recording::SetScaling (const std::string &value) |
| Sets the scaling as a string. | |
| int | Recording::SetTime (const std::string &value) |
| Sets the time of recording as a string. | |
| int | Recording::SetTime (int hour, int minute, int sec) |
| int | Recording::SetDate (const std::string &value) |
| Sets the date of recording as a string. | |
| int | Recording::SetDate (int year, int month, int mday) |
| void | Recording::SetDateTime (const struct tm &value) |
| Sets the date and time of recording as struct tm. | |
| void | Recording::SetDateTime (int year, int month, int mday, int hour, int minute, int sec) |
| void | Recording::SetComment (const std::string &value) |
| Sets a comment string. | |
| void | Recording::SetGlobalYUnits (std::size_t n_channel, const std::string &value) |
| Sets the y units for a channel. | |
| void | Recording::SetXUnits (const std::string &value) |
| Sets the x units. | |
| void | Recording::SetXScale (double value) |
| Sets the x scaling. | |
| void | Recording::SetCurChIndex (std::size_t value) |
| Sets the index of the current channel. | |
| void | Recording::SetSecChIndex (std::size_t value) |
| Sets the index of the second channel. | |
| void | Recording::SetCurSecIndex (std::size_t value) |
| Sets the index of the current section. | |
| virtual void | Recording::resize (std::size_t c_n_channels) |
| Resize the Recording to a new number of channels. | |
| virtual void | Recording::InsertChannel (Channel &c_Channel, std::size_t pos) |
| Insert a Channel at a given position. | |
| void | Recording::CopyAttributes (const Recording &c_Recording) |
| Copy descriptive attributes from another Recording to this Recording. | |
| void | Recording::MakeAverage (Section &AverageReturn, Section &SigReturn, std::size_t channel, const std::vector< std::size_t > §ion_index, bool isSig, const std::vector< int > &shift) const |
| Calculates an average of several traces. | |
| void | Recording::AddRec (const Recording &toAdd) |
| Add a Recording at the end of this Recording. | |
| void | Recording::SelectTrace (std::size_t sectionToSelect, std::ptrdiff_t base_start, std::ptrdiff_t base_end) |
| Selects a section. | |
| bool | Recording::UnselectTrace (std::size_t sectionToUnselect) |
| Unselects a section if it was selected before. | |
| Channel & | Recording::operator[] (std::size_t at) |
| Unchecked channel access (read and write) | |
| const Channel & | Recording::operator[] (std::size_t at) const |
| Unchecked channel access (read-only) | |
| std::string | Recording::GetEventDescription (int type) |
| Get Description of Event Type. | |
| void | Recording::SetEventDescription (int type, const char *Description) |
| Set Description of Event Type. | |
| void | Recording::InitSectionMarkerList (size_t n) |
| Initialize List of Section Markers. | |
| int | Recording::GetSectionType (size_t section_number) |
| Get Type of Section. | |
| void | Recording::SetSectionType (size_t section_number, int type) |
| Set Type of Section. | |
| Section::Section () | |
| Default constructor. | |
| Section::Section (const Vector_double &valA, const std::string &label="\0") | |
| Constructor. | |
| Section::Section (std::size_t size, const std::string &label="\0") | |
| Yet another constructor. | |
| Section::~Section () | |
| Destructor. | |
| double & | Section::operator[] (std::size_t at) |
| Unchecked access. Returns a non-const reference. | |
| double | Section::operator[] (std::size_t at) const |
| Unchecked access. Returns a copy. | |
| double | Section::at (std::size_t at_) const |
| Range-checked access. Returns a copy. | |
| double & | Section::at (std::size_t at_) |
| Range-checked access. Returns a non-const reference. | |
| const Vector_double & | Section::get () const |
| Low-level access to the valarray (read-only). | |
| Vector_double & | Section::get_w () |
| Low-level access to the valarray (read and write). | |
| void | Section::resize (std::size_t new_size) |
| Resize the Section to a new number of data points; deletes all previously stored data when gcc is used. | |
| size_t | Section::size () const |
| Retrieve the number of data points. | |
| void | Section::SetXScale (double value) |
| Sets the x scaling. | |
| double | Section::GetXScale () const |
| Retrieves the x scaling. | |
| const std::string & | Section::GetSectionDescription () const |
| Retrieves a section description. | |
| void | Section::SetSectionDescription (const std::string &value) |
| Sets a section description. | |
| std::size_t | Section::GetSectionSize () |
| Range-checked access. Returns a non-const reference. | |
| void | Section::AddAnnotation (Annotation annotation) |
| void | Section::MoveAnnotation (size_t index, int new_position) |
| void | Section::RemoveAnnotation (size_t index) |
| void | Section::EraseAllAnnotations () |
| std::vector< Annotation > | Section::GetAnnotationList () |
| std::size_t | Section::GetFirstAnnotationPosition () |
| std::size_t | Section::GetLastAnnotationPosition () |
| template<typename T> | |
| T | stfnum::linFit (const std::vector< T > &x, const std::vector< T > &y, T &m, T &c) |
| Performs a linear fit. | |
| double StfnumDll | stfnum::lmFit (const Vector_double &data, double dt, const stfnum::storedFunc &fitFunc, const Vector_double &opts, bool use_scaling, Vector_double &p, std::string &info, int &warning) |
| Uses the Levenberg-Marquardt algorithm to perform a non-linear least-squares fit. | |
| double | stfnum::flin (double x, const Vector_double &p) |
| Linear function. | |
| void | stfnum::flin_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Dummy function to be passed to stfnum::storedFunc for linear functions. | |
| StfnumDll stfnum::storedFunc | stfnum::initLinFunc () |
| initializes a linear function | |
| Vector_double | stfnum::get_scale (Vector_double &data, double oldx) |
| Compute and perform normalisation. | |
| StfnumDll Vector_double | stfnum::LM_default_opts () |
| Return default LM options. | |
| StfnumDll double | stfnum::fexp (double x, const Vector_double &p) |
| Sum of n exponential functions. | |
| Vector_double | stfnum::fexp_jac (double x, const Vector_double &p) |
| Computes the Jacobian of stfnum::fexp(). | |
| void | stfnum::fexp_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::fexp() to data. | |
| void | stfnum::fexp_init2 (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Yet another initialiser for fitting stfnum::fexp() to data. | |
| StfnumDll double | stfnum::fexpde (double x, const Vector_double &p) |
| Monoexponential function with delay. | |
| void | stfnum::fexpde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::fexpde() to data. | |
| StfnumDll double | stfnum::fexpbde (double x, const Vector_double &p) |
| Biexponential function with delay. | |
| double | stfnum::fexptde (double x, const Vector_double &p) |
| Triexponential function with delay. | |
| void | stfnum::fexpbde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::fexpde() to data. | |
| void | stfnum::fexptde_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::fexpde() to data. | |
| StfnumDll double | stfnum::falpha (double x, const Vector_double &p) |
| Alpha function. | |
| Vector_double | stfnum::falpha_jac (double x, const Vector_double &p) |
| Computes the Jacobian of stfnum::falpha(). | |
| StfnumDll double | stfnum::fHH (double x, const Vector_double &p) |
| Hodgkin-Huxley sodium conductance function. | |
| StfnumDll double | stfnum::fgauss (double x, const Vector_double &p) |
| Computes the sum of an arbitrary number of Gaussians. | |
| Vector_double | stfnum::fgauss_jac (double x, const Vector_double &p) |
| Computes the Jacobian of a sum of Gaussians. | |
| StfnumDll double | stfnum::fgnabiexp (double x, const Vector_double &p) |
| power of 1 sodium conductance function. | |
| Vector_double | stfnum::fgnabiexp_jac (double x, const Vector_double &p) |
| Computes the Jacobian of stfnum::fgnabiexp(). | |
| void | stfnum::falpha_init (const Vector_double &data, double base, double peak, double RTLoHI, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::falpha() to data. | |
| void | stfnum::fgauss_init (const Vector_double &data, double base, double peak, double RTLoHI, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::fgauss() to data. | |
| void | stfnum::fHH_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::falpha() to data. | |
| void | stfnum::fgnabiexp_init (const Vector_double &data, double base, double peak, double RTLoHi, double HalfWidth, double dt, Vector_double &pInit) |
| Initialises parameters for fitting stfnum::falpha() to data. | |
| double | stfnum::xscale (double param, double xscale, double xoff, double yscale, double yoff) |
| Scales a parameter that linearly depends on x. | |
| double | stfnum::xunscale (double param, double xscale, double xoff, double yscale, double yoff) |
| Unscales a parameter that linearly depends on x. | |
| double | stfnum::yscale (double param, double xscale, double xoff, double yscale, double yoff) |
| Scales a parameter that linearly depends on y. | |
| double | stfnum::yscaleoffset (double param, double xscale, double xoff, double yscale, double yoff) |
| Scales a parameter that linearly depends on y and adds an offset. | |
| double | stfnum::yunscale (double param, double xscale, double xoff, double yscale, double yoff) |
| Unscales a parameter that linearly depends on y. | |
| double | stfnum::yunscaleoffset (double param, double xscale, double xoff, double yscale, double yoff) |
| Unscales a parameter that linearly depends on y and removes the offset. | |
| std::vector< stfnum::parInfo > | stfnum::getParInfoExp (int n_exp) |
| Creates stfnum::parInfo structs for n-exponential functions. | |
| stfnum::Table | stfnum::outputWTau (const Vector_double &p, const std::vector< stfnum::parInfo > &parsInfo, double chisqr) |
| Calculates a weighted time constant. | |
| std::size_t | stfnum::whereis (const Vector_double &data, double value) |
| Finds the index of data where value is encountered for the first time. | |
| StfnumDll std::vector< stfnum::storedFunc > | stfnum::GetFuncLib () |
| Returns the library of functions for non-linear regression. | |
| StfnumDll double | stfnum::base (enum stfnum::baseline_method method, double &var, const std::vector< double > &data, std::size_t llb, std::size_t ulb) |
| Calculate the average of all sampling points between and including llb and ulb. | |
| StfnumDll double | stfnum::peak (const std::vector< double > &data, double base, std::size_t llp, std::size_t ulp, int pM, stfnum::direction, double &maxT) |
| Find the peak value of data between llp and ulp. | |
| StfnumDll double | stfnum::threshold (const std::vector< double > &data, std::size_t llp, std::size_t ulp, double slope, double &thrT, std::size_t windowLength) |
| Find the value within data between llp and ulp at which slope is exceeded. | |
| StfnumDll double | stfnum::risetime (const std::vector< double > &data, double base, double ampl, double left, double right, double frac, std::size_t &tLoId, std::size_t &tHiId, double &tLoReal) |
| Find 20 to 80% rise time of an event in data. | |
| StfnumDll double | stfnum::risetime2 (const std::vector< double > &data, double base, double ampl, double left, double right, double frac, double &innerTLoReal, double &innerTHiReal, double &outerTLoReal, double &outerTHiReal) |
| Find 20 to 80% rise time of an event in data. | |
| StfnumDll double | stfnum::t_half (const std::vector< double > &data, double base, double ampl, double left, double right, double center, std::size_t &t50LeftId, std::size_t &t50RightId, double &t50LeftReal) |
| Find the full width at half-maximal amplitude of an event within data. | |
| StfnumDll double | stfnum::maxRise (const std::vector< double > &data, double left, double right, double &maxRiseT, double &maxRiseY, std::size_t windowLength) |
| Find the maximal slope during the rising phase of an event within data. | |
| StfnumDll double | stfnum::maxDecay (const std::vector< double > &data, double left, double right, double &maxDecayT, double &maxDecayY, std::size_t windowLength) |
| Find the maximal slope during the decaying phase of an event within data. | |
| Vector_double | stfnum::nojac (double x, const Vector_double &p) |
| Dummy function, serves as a placeholder to initialize functions without a Jacobian. | |
| double | stfnum::noscale (double param, double xscale, double xoff, double yscale, double yoff) |
| Dummy function, serves as a placeholder to initialize parameters without a scaling function. | |
| stfnum::parInfo::parInfo () | |
| Default constructor. | |
| stfnum::parInfo::parInfo (const std::string &desc_, bool toFit_, bool constrained_=false, double constr_lb_=0, double constr_ub_=0, Scale scale_=noscale, Scale unscale_=noscale) | |
| Constructor. | |
| stfnum::Table::Table (std::size_t nRows, std::size_t nCols) | |
| Constructor. | |
| stfnum::Table::Table (const std::map< std::string, double > &map) | |
| Constructor. | |
| double | stfnum::Table::at (std::size_t row, std::size_t col) const |
| Range-checked access. Returns a copy. Throws std::out_of_range if out of range. | |
| double & | stfnum::Table::at (std::size_t row, std::size_t col) |
| Range-checked access. Returns a reference. Throws std::out_of_range if out of range. | |
| bool | stfnum::Table::IsEmpty (std::size_t row, std::size_t col) const |
| Check whether a cell is empty. | |
| void | stfnum::Table::SetEmpty (std::size_t row, std::size_t col, bool value=true) |
| Empties or un-empties a cell. | |
| void | stfnum::Table::SetRowLabel (std::size_t row, const std::string &label) |
| Sets the label of a row. | |
| void | stfnum::Table::SetColLabel (std::size_t col, const std::string &label) |
| Sets the label of a column. | |
| const std::string & | stfnum::Table::GetRowLabel (std::size_t row) const |
| Retrieves the label of a row. | |
| const std::string & | stfnum::Table::GetColLabel (std::size_t col) const |
| Retrieves the label of a column. | |
| std::size_t | stfnum::Table::nRows () const |
| Retrieves the number of rows. | |
| std::size_t | stfnum::Table::nCols () const |
| Retrieves the number of columns. | |
| void | stfnum::Table::AppendRows (std::size_t nRows) |
| Appends rows to the table. | |
| Table | stfnum::defaultOutput (const Vector_double &pars, const std::vector< parInfo > &parsInfo, double chisqr) |
| Default fit output function, constructing a stfnum::Table from the parameters, their description and chisqr. | |
| stfnum::storedFunc::storedFunc (const std::string &name_, const std::vector< parInfo > &pInfo_, const Func &func_, const Init &init_, const Jac &jac_, bool hasJac_=true, const Output &output_=defaultOutput) | |
| Constructor. | |
| stfnum::storedFunc::~storedFunc () | |
| Destructor. | |
| template<typename T> | |
| T | stfnum::SQR (T a) |
| Calculates the square of a number. | |
| StfnumDll Vector_double | stfnum::filter (const Vector_double &toFilter, std::size_t filter_start, std::size_t filter_end, const Vector_double &a, int SR, stfnum::Func func, bool inverse=false) |
| Convolves a data set with a filter function. | |
| std::map< double, int > | stfnum::histogram (const Vector_double &data, int nbins=-1) |
| Computes a histogram. | |
| StfnumDll Vector_double | stfnum::deconvolve (const Vector_double &data, const Vector_double &templ, int SR, double hipass, double lopass, stfio::ProgressInfo &progDlg) |
| Deconvolves a template from a signal. | |
| template<class T> | |
| std::vector< T > | stfnum::cubicSpline (const std::vector< T > &y, T oldF, T newF) |
| Interpolates a dataset using cubic splines. | |
| template<class T> | |
| std::vector< T > | stfnum::diff (const std::vector< T > &input, T x_scale) |
| Differentiate data. | |
| StfnumDll double | stfnum::integrate_simpson (const Vector_double &input, std::size_t a, std::size_t b, double x_scale) |
| Integration using Simpson's rule. | |
| StfnumDll double | stfnum::integrate_trapezium (const Vector_double &input, std::size_t a, std::size_t b, double x_scale) |
| Integration using the trapezium rule. | |
| int | stfnum::linsolv (int m, int n, int nrhs, Vector_double &A, Vector_double &B) |
| Solves a linear equation system using LAPACK. | |
| StfnumDll Vector_double | stfnum::quad (const Vector_double &data, std::size_t begin, std::size_t end) |
| Solve quadratic equations for 3 adjacent sampling points. | |
| StfnumDll Vector_double | stfnum::detectionCriterion (const Vector_double &data, const Vector_double &templ, stfio::ProgressInfo &progDlg) |
| Computes the event detection criterion according to Clements & Bekkers (1997). | |
| StfnumDll std::vector< int > | stfnum::peakIndices (const Vector_double &data, double threshold, int minDistance) |
| Searches for positive-going peaks. | |
| StfnumDll Vector_double | stfnum::linCorr (const Vector_double &va1, const Vector_double &va2, stfio::ProgressInfo &progDlg) |
| Computes the linear correlation between two arrays. | |
| StfnumDll double | stfnum::fgaussColqu (double x, const Vector_double &p) |
| Computes a Gaussian that can be used as a filter kernel. | |
| double | stfnum::fboltz (double x, const Vector_double &p) |
| Computes a Boltzmann function. | |
| double | stfnum::fbessel (double x, int n) |
| Computes a Bessel polynomial. | |
| StfnumDll double | stfnum::fbessel4 (double x, const Vector_double &p) |
| Computes a 4th-order Bessel polynomial that can be used as a filter kernel. | |
| int | stfnum::fac (int arg) |
| Computes the faculty of an integer. | |
| int | stfnum::pow2 (int arg) |
| Computes \( 2^{arg} \). Uses the bitwise-shift operator (<<). | |
| stf::wxProgressInfo::wxProgressInfo (const std::string &title, const std::string &message, int maximum, bool verbose=true) | |
| bool | stf::wxProgressInfo::Update (int value, const std::string &newmsg="", bool *skip=NULL) |
| Updates the progress info. | |
| std::string | stf::wx2std (const wxString &wxs) |
| wxString | stf::std2wx (const std::string &sst) |
| wxString | stf::sectionToString (const Section §ion) |
| Converts a Section to a wxString. | |
| wxString | stf::CreatePreview (const wxString &fName) |
| Creates a preview of a text file. | |
| wxString | stf::noPath (const wxString &fName) |
| Strips the directory off a full path name, returns only the filename. | |
| stf::UserInput::UserInput (const std::vector< std::string > &labels_=std::vector< std::string >(0), const Vector_double &defaults_=Vector_double(0), std::string title_="\0") | |
| Constructor. | |
| stf::Plugin::Plugin (const wxString &menuEntry_, const PluginFunc &pluginFunc_, const UserInput &input_=UserInput()) | |
| Constructor. | |
| stf::Plugin::~Plugin () | |
| Destructor. | |
| stf::Extension::Extension (const std::string &menuEntry_, void *pyFunc_, const std::string &description_, bool requiresFile_) | |
| Constructor. | |
| stf::Extension::~Extension () | |
| Destructor. | |
| stf::ifstreamMan::ifstreamMan (const wxString &filename) | |
| Constructor. | |
| stf::ifstreamMan::~ifstreamMan () | |
| Destructor. | |
| stf::ofstreamMan::ofstreamMan (const wxString &filename) | |
| Constructor. | |
| stf::ofstreamMan::~ofstreamMan () | |
| Destructor. | |
| stf::Event::Event (std::size_t start, std::size_t peak, std::size_t size, wxCheckBox *cb) | |
| Constructor. | |
| stf::Event::~Event () | |
| Destructor. | |
| std::size_t | stf::Event::GetEventStartIndex () const |
| Retrieves the start index of an event. | |
| std::size_t | stf::Event::GetEventPeakIndex () const |
| Retrieves the index of an event's peak. | |
| std::size_t | stf::Event::GetEventSize () const |
| Retrieves the size of an event. | |
| bool | stf::Event::GetDiscard () const |
| Indicates whether an event should be discarded. | |
| wxCheckBox * | stf::Event::GetCheckBox () |
| Get the check box associated with this event. | |
| void | stf::Event::SetEventStartIndex (std::size_t value) |
| Sets the start index of an event. | |
| void | stf::Event::SetEventPeakIndex (std::size_t value) |
| Sets the index of an event's peak. | |
| void | stf::Event::SetEventSize (std::size_t value) |
| Sets the size of an event. | |
| stf::PyMarker::PyMarker (double xv, double yv) | |
| Constructor. | |
| stf::SectionAttributes::SectionAttributes () | |
| stf::SectionPointer::SectionPointer (Section *pSec=NULL, const SectionAttributes &sa=SectionAttributes()) | |
| int | stf::round (double toRound) |
| Does what it says. | |
| typedef boost::function<double(double, const Vector_double&)> stfnum::Func |
| typedef boost::function<void(const Vector_double&, double, double, double, double, double, Vector_double&)> stfnum::Init |
Initialising function for the parameters in stfnum::Func to start a fit.
| typedef boost::function<Vector_double(double, const Vector_double&)> stfnum::Jac |
The jacobian of a stfnum::Func.
| typedef boost::function<Table(const Vector_double&,const std::vector<stfnum::parInfo>,double)> stfnum::Output |
Print the output of a fit into a stfnum::Table.
| typedef boost::function<Recording(const Recording&,const Vector_double&,std::map<std::string, double>&)> stf::PluginFunc |
| typedef boost::function<double(double, double, double, double, double)> stfnum::Scale |
| enum stf::cursor_type |
Mouse cursor types.
| Enumerator | |
|---|---|
| measure_cursor | Measurement cursor (crosshair). |
| peak_cursor | Peak calculation limits cursor. |
| base_cursor | Baseline calculation limits cursor. |
| decay_cursor | Fit limits cursor. |
| latency_cursor | Latency cursor. |
| zoom_cursor | Zoom rectangle cursor. |
| event_cursor | Event mode cursor. |
| annotation_cursor | Annotation mode cursor. |
| undefined_cursor | Undefined cursor. |
| enum stfnum::direction |
| enum stf::extraction_mode |
| enum stf::latency_mode |
Latency cursor settings.
| enum stf::zoom_channels |
| void Section::AddAnnotation | ( | Annotation | annotation | ) |
| void Recording::AddRec | ( | const Recording & | toAdd | ) |
Add a Recording at the end of this Recording.
| toAdd | The Recording to be added. |
References Recording().
| void stfnum::Table::AppendRows | ( | std::size_t | nRows | ) |
| Section & Channel::at | ( | std::size_t | at_ | ) |
Range-checked access to a section (read and write).
Will throw std::out_of_range if out of range.
| at_ | The index of the section. |
| const Section & Channel::at | ( | std::size_t | at_ | ) | const |
Range-checked access to a section (read-only).
Will throw std::out_of_range if out of range.
| at_ | The index of the section. |
| Channel & Recording::at | ( | std::size_t | n_c | ) |
Range-checked access to a channel (read and write).
Will throw std::out_of_range if out of range.
| n_c | The index of the channel. |
| const Channel & Recording::at | ( | std::size_t | n_c | ) | const |
Range-checked access to a channel (read-only).
Will throw std::out_of_range if out of range.
| n_c | The index of the channel. |
Referenced by operator[](), and operator[]().
| double & Section::at | ( | std::size_t | at_ | ) |
Range-checked access. Returns a non-const reference.
Throws std::out_of_range if out of range.
| at_ | Data point index. |
| double Section::at | ( | std::size_t | at_ | ) | const |
Range-checked access. Returns a copy.
Throws std::out_of_range if+#include "./annotation.h" out of range.
| at_ | Data point index. |
Referenced by operator[](), and operator[]().
| double & stfnum::Table::at | ( | std::size_t | row, |
| std::size_t | col ) |
Range-checked access. Returns a reference. Throws std::out_of_range if out of range.
| row | 0-based row index. |
| col | 0-based column index. |
| double stfnum::Table::at | ( | std::size_t | row, |
| std::size_t | col ) const |
Range-checked access. Returns a copy. Throws std::out_of_range if out of range.
| row | 0-based row index. |
| col | 0-based column index. |
| StfnumDll double stfnum::base | ( | enum stfnum::baseline_method | method, |
| double & | var, | ||
| const std::vector< double > & | data, | ||
| std::size_t | llb, | ||
| std::size_t | ulb ) |
Calculate the average of all sampling points between and including llb and ulb.
| method | 0: mean and s.d.; 1: median |
| var | Will contain the variance on exit (only when method=0). |
| data | The data waveform to be analysed. |
| llb | Averaging will be started at this index. |
| ulb | Index of the last data point included in the average (legacy of the PASCAL version). |
| llp | Lower limit of the peak window (see stfnum::peak()). |
| ulp | Upper limit of the peak window (see stfnum::peak()). |
References StfnumDll.
Referenced by falpha_init(), fexp_init(), fexp_init2(), fexpbde_init(), fexpde_init(), fexptde_init(), fgauss_init(), fgnabiexp_init(), fHH_init(), flin_init(), peak(), risetime(), risetime2(), and t_half().
|
explicit |
Constructor.
| c_Section | A single section from which to construct the channel |
|
explicit |
Constructor.
| SectionList | A vector of Sections from which to construct the channel |
|
explicit |
Constructor.
Setting the number of sections at construction time will avoid unnecessary memory re-allocations.
| c_n_sections | The number of sections. |
| section_size | Initial section size. Will serve additional re-alocations if known at construction time. |
|
explicit |
Default constructor.
| void Recording::CopyAttributes | ( | const Recording & | c_Recording | ) |
Copy descriptive attributes from another Recording to this Recording.
This will copy the file and global section decription, the scaling, time, date, comment and global y units strings and the x-scale.
| c_Recording | The Recording from which to copy the attributes. |
References Recording().
Creates a preview of a text file.
| fName | Full path name of the file. |
| std::vector< T > stfnum::cubicSpline | ( | const std::vector< T > & | y, |
| T | oldF, | ||
| T | newF ) |
Interpolates a dataset using cubic splines.
| y | The valarray to be interpolated. |
| oldF | The original sampling frequency. |
| newF | The new frequency of the interpolated array. |
Definition at line 564 of file stfnum.h.
References size, spline_cubic_set(), and spline_cubic_val().
|
inline |
Retrieves active channel (read and write)
Definition at line 194 of file recording.h.
|
inline |
Retrieves the active channel (read-only)
Definition at line 189 of file recording.h.
|
inline |
Retrieves the currently accessed section in the active channel (read and write)
Definition at line 179 of file recording.h.
|
inline |
Retrieves the currently accessed section in the active channel (read-only)
Definition at line 174 of file recording.h.
| StfnumDll Vector_double stfnum::deconvolve | ( | const Vector_double & | data, |
| const Vector_double & | templ, | ||
| int | SR, | ||
| double | hipass, | ||
| double | lopass, | ||
| stfio::ProgressInfo & | progDlg ) |
Deconvolves a template from a signal.
| data | The input signal |
| templ | The template |
| SR | The sampling rate in kHz. |
| hipass | Highpass filter cutoff frequency in kHz |
| lopass | Lowpass filter cutoff frequency in kHz |
References StfnumDll.
| Table stfnum::defaultOutput | ( | const Vector_double & | pars, |
| const std::vector< parInfo > & | parsInfo, | ||
| double | chisqr ) |
Default fit output function, constructing a stfnum::Table from the parameters, their description and chisqr.
Referenced by stfnum::storedFunc::storedFunc().
| StfnumDll Vector_double stfnum::detectionCriterion | ( | const Vector_double & | data, |
| const Vector_double & | templ, | ||
| stfio::ProgressInfo & | progDlg ) |
Computes the event detection criterion according to Clements & Bekkers (1997).
| data | The valarray from which to extract events. |
| templ | A template waveform that is used for event detection. |
| std::vector< T > stfnum::diff | ( | const std::vector< T > & | input, |
| T | x_scale ) |
| void Section::EraseAllAnnotations | ( | ) |
|
explicit |
Constructor.
References size.
|
inline |
Constructor.
| menuEntry_ | Menu entry string for this extension. |
| pyFunc_ | Python function to be called. |
| description_ | Description for this function. |
| requiresFile_ | Whether a file needs to be open for this function to work |
Definition at line 212 of file stf.h.
References description, menuEntry, n_extensions, pyFunc, and requiresFile.
| int stfnum::fac | ( | int | arg | ) |
Computes the faculty of an integer.
| arg | Argument of the function. |
| StfnumDll double stfnum::falpha | ( | double | x, |
| const Vector_double & | p ) |
Alpha function.
\[f(x)=p_0 \frac{x}{p_1} \mathrm{e}^{\left(1 - \frac{x}{p_1} \right)} + p_2\]
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the amplitude, p[1] is the rate and p[2] is the offset. |
References StfnumDll.
| void stfnum::falpha_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHI, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::falpha() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 3. On exit, will contain initial parameter estimates. |
| Vector_double stfnum::falpha_jac | ( | double | x, |
| const Vector_double & | p ) |
Computes the Jacobian of stfnum::falpha().
\begin{eqnarray*} j_0(x) &=& \frac{\partial f(x)}{\partial p_0} = \frac{x \mathrm{e}^{\left(1 - \frac{x}{p_1} \right)}}{p_1} \\ j_1(x) &=& \frac{\partial f(x)}{\partial p_1} = \frac{x \mathrm{e}^{\left(1 - \frac{x}{p_1} \right)}}{p_1} \left(\frac{p_0 x}{p_1^2} - \frac{p_0}{p_1} \right) \\ j_2(x) &=& \frac{\partial f(x)}{\partial p_2} = 1 \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the amplitude, p[1] is the rate and p[2] is the offset. |
| double stfnum::fbessel | ( | double | x, |
| int | n ) |
| StfnumDll double stfnum::fbessel4 | ( | double | x, |
| const Vector_double & | p ) |
Computes a 4th-order Bessel polynomial that can be used as a filter kernel.
\[ f(x) = \frac{b(0,4)}{b(\frac{0.355589x}{p_0},4)} \]
where \( b(a,n) \) is the bessel polynomial stfnum::fbessel().
| x | Argument of the function. |
| p | Function parameters, where p[0] is the corner frequency (-3 dB attenuation) |
| double stfnum::fboltz | ( | double | x, |
| const Vector_double & | p ) |
Computes a Boltzmann function.
\[f(x)=\frac{1}{1+\mathrm{e}^{\frac{p_0-x}{p_1}}}\]
| x | Argument of the function. |
| p | Function parameters, where p[0] is the midpoint and p[1] is the slope of the function. |
| StfnumDll double stfnum::fexp | ( | double | x, |
| const Vector_double & | p ) |
Sum of n exponential functions.
\[f(x)=p_{2n} + \sum_{i=0}^{n - 1}p_{2i}\mathrm{e}^{\left( \frac{x}{p_{2i + 1}}\right)}\]
| x | Function argument. |
| p | A valarray of parameters of size 2n+1, where n is the number of exponential terms, p[2i] is the amplitude term, p[2i+1] is the time constant, p[2n], the last element, contains the offset and i denotes the i -th exponential term (running from 0 to n-1). |
References StfnumDll.
| void stfnum::fexp_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::fexp() to data.
This needs to be made more robust.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 2n+1, where n is the number of exponential functions. On exit, will contain initial parameter estimates. |
| void stfnum::fexp_init2 | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Yet another initialiser for fitting stfnum::fexp() to data.
In this case, one of the amplitude terms will have another sign than the others, making it more suitable for fitting PSCs or PSPs. However, this often fails to work in practice.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 2n+1, where n is the number of exponential functions. On exit, will contain initial parameter estimates. |
| Vector_double stfnum::fexp_jac | ( | double | x, |
| const Vector_double & | p ) |
Computes the Jacobian of stfnum::fexp().
\begin{eqnarray*} j_{2i}(x) &=& \frac{\partial f(x)}{\partial p_{2i}} = \mathrm{e}^{\left(\frac{-x}{p_{2i+1}}\right)} \\ j_{2i+1}(x) &=& \frac{\partial f(x)}{\partial p_{2i+1}} = \frac{p_{2i}}{p_{2i+1}^2} x \mathrm{e}^{\left( \frac{-x}{p_{2i+1}}\right)} \\ j_n(x) &=& \frac{\partial f(x)}{\partial p_{n}} = 1 \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters of size 2n+1, where n is the number of exponential terms, p[2i] is the amplitude term, p[2i+1] is the time constant, p[2n], the last element, contains the offset and i denotes the i -th exponential term (running from 0 to n-1). |
| StfnumDll double stfnum::fexpbde | ( | double | x, |
| const Vector_double & | p ) |
Biexponential function with delay.
\begin{eqnarray*} f(x)= \begin{cases} p_0 & \mbox{if }x < p_1 \\ p_3 \left( \mathrm{e}^{\frac{p_1 - x}{p_2}} - \mathrm{e}^{\frac{p_1 - x}{p_4}} \right) + p_0 & \mbox{if }x \geq p_1 \end{cases} \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the baseline, p[1] is the delay, p[2] is the later (slower) time constant, p[3] is the amplitude and p[4] is the earlier (faster) time constant, |
References StfnumDll.
| void stfnum::fexpbde_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::fexpde() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 4. On exit, will contain initial parameter estimates. |
| StfnumDll double stfnum::fexpde | ( | double | x, |
| const Vector_double & | p ) |
Monoexponential function with delay.
\begin{eqnarray*} f(x)= \begin{cases} p_0, & \mbox{if }x < p_3 \\ \left( p_0 - p_2 \right) \mathrm{e}^{\left (\frac{p_3 - x}{p_1}\right )} + p_2, & \mbox{if }x \geq p_3 \end{cases} \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the baseline, p[1] is the time constant, p[2] is the amplitude and p[3] is the delay. |
References StfnumDll.
| void stfnum::fexpde_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::fexpde() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 4. On exit, will contain initial parameter estimates. |
| double stfnum::fexptde | ( | double | x, |
| const Vector_double & | p ) |
Triexponential function with delay.
\begin{eqnarray*} f(x)= \begin{cases} p_0 & \mbox{if }x < p_1 \\ p_3 \left( p_6\mathrm{e}^{\frac{p_1 - x}{p_2}} + (1-p_6)\mathrm{e}^{\frac{p_1 - x}{p_5}} - \mathrm{e}^{\frac{p_1 - x}{p_4}} \right) + p_0 & \mbox{if }x \geq p_1 \end{cases} \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the baseline, p[1] is the delay, p[2] is the first later (slower) time constant, p[3] is the amplitude and p[4] is the earlier (faster) time constant, p[5] is the second later (slower) time constant, p[6] is the relative weight of p[2], |
| void stfnum::fexptde_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::fexpde() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 4. On exit, will contain initial parameter estimates. |
| StfnumDll double stfnum::fgauss | ( | double | x, |
| const Vector_double & | p ) |
Computes the sum of an arbitrary number of Gaussians.
\[ f(x) = \sum_{i=0}^{n-1}p_{3i}\mathrm{e}^{- \left( \frac{x-p_{3i+1}}{p_{3i+2}} \right) ^2} \]
| x | Argument of the function. |
| p | A valarray of function parameters of size 3n, where p[3i] is the amplitude of the Gaussian p[3i+1] is the position of the center of the peak, p[3i+2] is the width of the Gaussian, n is the number of Gaussian functions and i is the 0-based index of the i-th Gaussian. |
| void stfnum::fgauss_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHI, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::fgauss() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 3. On exit, will contain initial parameter estimates. |
| Vector_double stfnum::fgauss_jac | ( | double | x, |
| const Vector_double & | p ) |
Computes the Jacobian of a sum of Gaussians.
| StfnumDll double stfnum::fgaussColqu | ( | double | x, |
| const Vector_double & | p ) |
Computes a Gaussian that can be used as a filter kernel.
\[ f(x) = \mathrm{e}^{-0.3466 \left( \frac{x}{p_{0}} \right) ^2} \]
| x | Argument of the function. |
| p | Function parameters, where p[0] is the corner frequency (-3 dB according to Colquhoun) |
| StfnumDll double stfnum::fgnabiexp | ( | double | x, |
| const Vector_double & | p ) |
power of 1 sodium conductance function.
\[f(x)=p_0\left(1-\mathrm{e}^{\frac{-x}{p_1}}\right)\mathrm{e}^{\frac{-x}{p_2}} + p_3\]
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the amplitude \(g'_{Na}\), p[1] is \(\tau_m\), p[2] is \(\tau_h\) and p[3] is the offset. |
References StfnumDll.
| void stfnum::fgnabiexp_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::falpha() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 4. On exit, will contain initial parameter estimates. |
| Vector_double stfnum::fgnabiexp_jac | ( | double | x, |
| const Vector_double & | p ) |
Computes the Jacobian of stfnum::fgnabiexp().
\begin{eqnarray*} j_0(x) &=& \frac{\partial f(x)}{\partial p_0} = \left(1 -\mathrm{e}^{\frac{-x}{p_1}}\right) \mathrm{e}^{\frac{-x}{p_2}} \\ j_1(x) &=& \frac{\partial f(x)}{\partial p_1} = p_0 \frac{ -x \mathrm{e}^{\left(-\frac{x}{p_1} - \frac{x}{p_2} \right)}}{p_1^2} \\ j_2(x) &=& \frac{\partial f(x)}{\partial p_2} = p_0 \frac{ x \left(1 -\mathrm{e}^{\frac{-x}{p_1}}\right) \mathrm{e}^{\frac{-x}{p_2}}} {p_2^2}\\ j_3(x) &=& \frac{\partial f(x)}{\partial p_3} = 1 \end{eqnarray*}
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the amplitude \(g'_{Na}\), p[1] is \(\tau_m\), p[2] is \(\tau_h\) and p[3] is the offset. |
| StfnumDll double stfnum::fHH | ( | double | x, |
| const Vector_double & | p ) |
Hodgkin-Huxley sodium conductance function.
\[f(x)=p_0\left(1-\mathrm{e}^{\frac{-x}{p_1}}\right)^3\mathrm{e}^{\frac{-x}{p_2}} + p_3\]
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the amplitude \(g'_{Na}\), p[1] is \(\tau_m\), p[2] is \(\tau_h\) and p[3] is the offset. |
References StfnumDll.
| void stfnum::fHH_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Initialises parameters for fitting stfnum::falpha() to data.
| data | The waveform of the data for the fit. |
| base | Baseline of data. |
| peak | Peak value of data. |
| dt | The sampling interval. |
| pInit | On entry, pass a valarray of size 4. On exit, will contain initial parameter estimates. |
| StfnumDll Vector_double stfnum::filter | ( | const Vector_double & | toFilter, |
| std::size_t | filter_start, | ||
| std::size_t | filter_end, | ||
| const Vector_double & | a, | ||
| int | SR, | ||
| stfnum::Func | func, | ||
| bool | inverse = false ) |
Convolves a data set with a filter function.
| toFilter | The valarray to be filtered. |
| filter_start | The index from which to start filtering. |
| filter_end | The index at which to stop filtering. |
| a | A valarray of parameters for the filter function. |
| SR | The sampling rate. |
| func | The filter function in the frequency domain. |
| inverse | true if (1- func) should be used as the filter function, false otherwise |
| double stfnum::flin | ( | double | x, |
| const Vector_double & | p ) |
Linear function.
\[f(x)=p_0 x + p_1\]
| x | Function argument. |
| p | A valarray of parameters, where p[0] is the slope and p[1] is the y intersection. |
| void stfnum::flin_init | ( | const Vector_double & | data, |
| double | base, | ||
| double | peak, | ||
| double | RTLoHi, | ||
| double | HalfWidth, | ||
| double | dt, | ||
| Vector_double & | pInit ) |
Dummy function to be passed to stfnum::storedFunc for linear functions.
|
inline |
|
inline |
|
inline |
Retrieves the channels (read and write).
Definition at line 89 of file recording.h.
|
inline |
Retrieves the channels (read-only).
Definition at line 84 of file recording.h.
|
inline |
| Vector_double stfnum::get_scale | ( | Vector_double & | data, |
| double | oldx ) |
Compute and perform normalisation.
| data | Data vector; will be scaled upon return |
| oldx | original x interval |
|
inline |
| std::vector< Annotation > Section::GetAnnotationList | ( | ) |
|
inline |
| std::size_t Recording::GetChannelSize | ( | std::size_t | n_channel | ) | const |
Retrieves the number of sections in a channel.
| n_channel | The index of the channel (range-checked). |
|
inline |
Get the check box associated with this event.
| const std::string & stfnum::Table::GetColLabel | ( | std::size_t | col | ) | const |
Retrieves the label of a column.
| col | 0-based column index. |
|
inline |
Retrieves a comment string.
Definition at line 114 of file recording.h.
|
inline |
Retrieves the index of the current channel.
Definition at line 139 of file recording.h.
|
inline |
Retrieves the index of the current section.
Definition at line 149 of file recording.h.
|
inline |
Retrieves the date of recording as a string.
Definition at line 109 of file recording.h.
References GetDateTime().
Referenced by GetDateTime().
|
inline |
| std::string Recording::GetEventDescription | ( | int | type | ) |
Get Description of Event Type.
|
inline |
|
inline |
|
inline |
|
inline |
Retrieves the file description.
Definition at line 94 of file recording.h.
| std::size_t Section::GetFirstAnnotationPosition | ( | ) |
| StfnumDll std::vector< stfnum::storedFunc > stfnum::GetFuncLib | ( | ) |
Returns the library of functions for non-linear regression.
|
inline |
Retrieves the common section description.
Definition at line 99 of file recording.h.
| std::size_t Section::GetLastAnnotationPosition | ( | ) |
| std::vector< stfnum::parInfo > stfnum::getParInfoExp | ( | int | n_exp | ) |
Creates stfnum::parInfo structs for n-exponential functions.
| n_exp | Number of exponential terms. |
| const std::string & stfnum::Table::GetRowLabel | ( | std::size_t | row | ) | const |
Retrieves the label of a row.
| row | 0-based row index. |
|
inline |
Retrieves the scaling as a string.
Definition at line 104 of file recording.h.
|
inline |
Retrieves the index of the second channel.
Definition at line 144 of file recording.h.
|
inline |
| std::size_t Section::GetSectionSize | ( | ) |
Range-checked access. Returns a non-const reference.
Throws std::out_of_range if out of range.
| at_ | Data point index. |
| int Recording::GetSectionType | ( | size_t | section_number | ) |
Get Type of Section.
|
inline |
Retrieves the stored baseline values of the selected sections (read-only).
Definition at line 164 of file recording.h.
|
inline |
Retrieves the stored baseline values of the selected sections (read and write).
Definition at line 169 of file recording.h.
|
inline |
Retrieves the indices of the selected sections (read-only).
Definition at line 154 of file recording.h.
|
inline |
Retrieves the indices of the selected sections (read and write).
Definition at line 159 of file recording.h.
|
inline |
Retrieves the sampling rate ( 1 / x-scale )
Definition at line 134 of file recording.h.
|
inline |
Retrieves the x scaling (sampling interval).
Definition at line 129 of file recording.h.
|
inline |
|
inline |
Retrieves the x units.
Definition at line 119 of file recording.h.
|
inline |
| std::map< double, int > stfnum::histogram | ( | const Vector_double & | data, |
| int | nbins = -1 ) |
Computes a histogram.
| data | The signal |
| nbins | Number of bins in the histogram. |
References StfnumDll.
|
inline |
| StfnumDll stfnum::storedFunc stfnum::initLinFunc | ( | ) |
initializes a linear function
|
virtual |
| void Channel::InsertSection | ( | const Section & | c_Section, |
| std::size_t | pos ) |
Inserts a section at the given position, overwriting anything that's currently stored at that position.
Meant to be used after constructing with Channel(const unsigned int& c_n_sections}. The section array size has to be larger than pos because it won't be resized. Will throw std::out_of_range if out of range.
| c_Section | The section to be inserted. |
| pos | The position at which to insert the section. |
| StfnumDll double stfnum::integrate_simpson | ( | const Vector_double & | input, |
| std::size_t | a, | ||
| std::size_t | b, | ||
| double | x_scale ) |
Integration using Simpson's rule.
| input | The valarray to be integrated. |
| a | Start of the integration interval. |
| b | End of the integration interval. |
| x_scale | Sampling interval. |
References StfnumDll.
| StfnumDll double stfnum::integrate_trapezium | ( | const Vector_double & | input, |
| std::size_t | a, | ||
| std::size_t | b, | ||
| double | x_scale ) |
Integration using the trapezium rule.
| input | The valarray to be integrated. |
| a | Start of the integration interval. |
| b | End of the integration interval. |
| x_scale | Sampling interval. |
| bool stfnum::Table::IsEmpty | ( | std::size_t | row, |
| std::size_t | col ) const |
Check whether a cell is empty.
| row | 0-based row index. |
| col | 0-based column index. |
| StfnumDll Vector_double stfnum::linCorr | ( | const Vector_double & | va1, |
| const Vector_double & | va2, | ||
| stfio::ProgressInfo & | progDlg ) |
Computes the linear correlation between two arrays.
| va1 | First array. |
| va2 | Second array. |
References StfnumDll.
| T stfnum::linFit | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y, | ||
| T & | m, | ||
| T & | c ) |
Performs a linear fit.
| x | The x- values of the data that are to be fitted. |
| y | The y- values of the data that are to be fitted. |
| m | On exit, the slope of the regression line. |
| c | On exit, the y-intercept of the regression line. |
Definition at line 107 of file fit.h.
References n.
| int stfnum::linsolv | ( | int | m, |
| int | n, | ||
| int | nrhs, | ||
| Vector_double & | A, | ||
| Vector_double & | B ) |
Solves a linear equation system using LAPACK.
Uses column-major order for matrices. For an example, see Section::SetIsIntegrated()
| m | Number of rows of the matrix A. |
| n | Number of columns of the matrix A. |
| nrhs | Number of columns of the matrix B. |
| A | On entry, the left-hand-side matrix. On exit, the factors L and U from the factorization A = P*L*U; the unit diagonal elements of L are not stored. |
| B | On entry, the right-hand-side matrix. On exit, the solution to the linear equation system. |
| StfnumDll Vector_double stfnum::LM_default_opts | ( | ) |
| double StfnumDll stfnum::lmFit | ( | const Vector_double & | data, |
| double | dt, | ||
| const stfnum::storedFunc & | fitFunc, | ||
| const Vector_double & | opts, | ||
| bool | use_scaling, | ||
| Vector_double & | p, | ||
| std::string & | info, | ||
| int & | warning ) |
Uses the Levenberg-Marquardt algorithm to perform a non-linear least-squares fit.
| data | A valarray containing the data. |
| dt | The sampling interval of data. |
| fitFunc | An stfnum::storedFunc to be fitted to data. |
| opts | Options controlling Lourakis' implementation of the algorithm. |
| use_scaling | Whether to scale x and y-amplitudes to 1.0 |
| p | func's parameters. Should be set to an initial guess on entry. Will contain the best-fit values on exit. |
| info | Information about why the fit stopped iterating |
| warning | A warning code on return. |
References StfnumDll.
| void Recording::MakeAverage | ( | Section & | AverageReturn, |
| Section & | SigReturn, | ||
| std::size_t | channel, | ||
| const std::vector< std::size_t > & | section_index, | ||
| bool | isSig, | ||
| const std::vector< int > & | shift ) const |
Calculates an average of several traces.
| AverageReturn | The average will be returned in this variable by passing a reference. AverageReturn has to have the correct size upon entering this function already, it won't be resized. |
| SigReturn | The standard deviation will be returned in this variable by passing a reference if isSig == true. SigReturn has to have the correct size upon entering this function already, it won't be resized. |
| channel | The index of the channel to be used. |
| section_index | A vector containing the indices of the sections to be used for the average. |
| isSig | Set to true if the standard deviation should be calculated as well. |
| shift | A vector indicating by how many data points each section should be shifted before averaging. |
References channel.
| StfnumDll double stfnum::maxDecay | ( | const std::vector< double > & | data, |
| double | left, | ||
| double | right, | ||
| double & | maxDecayT, | ||
| double & | maxDecayY, | ||
| std::size_t | windowLength ) |
Find the maximal slope during the decaying phase of an event within data.
| data | The data waveform to be analysed. |
| left | Delimits the search to the left. |
| right | Delimits the search to the right. |
| maxDecayT | The interpolated time point of the maximal slope of decay in units of sampling points. |
| maxDecayY | The interpolated value of data at maxDecayT. |
| windowLength | is the distance (in number of samples) used to compute the slope, the default value is 1. |
| StfnumDll double stfnum::maxRise | ( | const std::vector< double > & | data, |
| double | left, | ||
| double | right, | ||
| double & | maxRiseT, | ||
| double & | maxRiseY, | ||
| std::size_t | windowLength ) |
Find the maximal slope during the rising phase of an event within data.
| data | The data waveform to be analysed. |
| left | Delimits the search to the left. |
| right | Delimits the search to the right. |
| maxRiseT | The interpolated time point of the maximal slope of rise in units of sampling points. |
| maxRiseY | The interpolated value of data at maxRiseT. |
| windowLength | is the distance (in number of samples) used to compute the slope, the default value is 1. |
References StfnumDll.
| void Section::MoveAnnotation | ( | size_t | index, |
| int | new_position ) |
|
inline |
| Vector_double stfnum::nojac | ( | double | x, |
| const Vector_double & | p ) |
Dummy function, serves as a placeholder to initialize functions without a Jacobian.
Strips the directory off a full path name, returns only the filename.
| fName | The full path of a file. |
| double stfnum::noscale | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
Dummy function, serves as a placeholder to initialize parameters without a scaling function.
References xscale(), and yscale().
Referenced by stfnum::parInfo::parInfo(), and stfnum::parInfo::parInfo().
|
inline |
Retrieves the number of rows.
Definition at line 220 of file stfnum.h.
Referenced by AppendRows(), and Table().
|
inline |
|
inline |
|
inline |
|
inline |
Unchecked channel access (read and write)
Use at() for range-checked access.
| at | The channel index. |
Definition at line 355 of file recording.h.
References at().
|
inline |
Unchecked channel access (read-only)
Use at() for range-checked access.
| at | The channel index. |
Definition at line 361 of file recording.h.
References at().
|
inline |
|
inline |
| stfnum::Table stfnum::outputWTau | ( | const Vector_double & | p, |
| const std::vector< stfnum::parInfo > & | parsInfo, | ||
| double | chisqr ) |
Calculates a weighted time constant.
| p | Parameters of an exponential function (see stfnum::fexp()). |
| parsInfo | Information about the parameters p. |
| chisqr | The sum of squared errors, as returned from a least-squares fit. |
|
inline |
Default constructor.
Definition at line 120 of file stfnum.h.
References constr_lb, constr_ub, constrained, desc, stfnum::noscale(), scale, toFit, and unscale.
|
inline |
Constructor.
| desc_ | Parameter description string |
| toFit_ | true if this parameter should be fitted, false if it should be kept fixed. |
| constrained_ | true if this is a constrained fit |
| constr_lb_ | lower bound for constrained fit |
| constr_ub_ | upper bound for constrained fit |
| scale_ | scaling function |
| unscale_ | unscaling function |
Definition at line 133 of file stfnum.h.
References constr_lb, constr_ub, constrained, desc, stfnum::noscale(), scale, toFit, and unscale.
| StfnumDll double stfnum::peak | ( | const std::vector< double > & | data, |
| double | base, | ||
| std::size_t | llp, | ||
| std::size_t | ulp, | ||
| int | pM, | ||
| stfnum::direction | , | ||
| double & | maxT ) |
Find the peak value of data between llp and ulp.
Note that peaks will be detected by measuring from base, but the return value is given from 0. Data points at both llp and ulp will be included in the search (legacy of Stimfit for PASCAL).
| data | The data waveform to be analysed. |
| base | The baseline value. |
| llp | Lower limit of the peak window. |
| ulp | Upper limit of the peak window. |
| pM | If pM > 1, a sliding (boxcar) average of width pM will be used to measure the peak. |
| dir | Can be stfnum::up for positive-going peaks, stfnum::down for negative-going peaks or stfnum::both for negative- or positive-going peaks, whichever is larger. |
| maxT | On exit, the index of the peak value. May be interpolated if pM > 1. |
References base(), pM, and StfnumDll.
Referenced by falpha_init(), fexp_init(), fexp_init2(), fexpbde_init(), fexpde_init(), fexptde_init(), fgauss_init(), fgnabiexp_init(), fHH_init(), and flin_init().
| StfnumDll std::vector< int > stfnum::peakIndices | ( | const Vector_double & | data, |
| double | threshold, | ||
| int | minDistance ) |
Searches for positive-going peaks.
| data | The valarray to be searched for peaks. |
| threshold | Minimal amplitude of a peak. |
| minDistance | Minimal distance between subsequent peaks. |
References StfnumDll, and threshold().
|
inline |
|
inline |
|
inline |
| StfnumDll Vector_double stfnum::quad | ( | const Vector_double & | data, |
| std::size_t | begin, | ||
| std::size_t | end ) |
Solve quadratic equations for 3 adjacent sampling points.
| data | The data vector |
| begin | Start of interval to be used |
| end | End of interval to be used |
References StfnumDll.
|
explicit |
Default constuctor.
Referenced by AddRec(), CopyAttributes(), wxStfDoc::GetAverage(), wxStfDoc::LoadTDMS(), and wxStfDoc::SetData().
|
explicit |
|
explicit |
Constructor.
| ChannelList | A vector of channels from which to construct a new Recording. |
|
explicit |
Constructor.
Setting the number of channels and sections at construction time will avoid unnecessary memory re-allocations.
| c_n_channels | The number of channels. |
| c_n_sections | The number of sections. |
| c_n_points | The number of sampling points per section. |
| void Section::RemoveAnnotation | ( | size_t | index | ) |
| void Channel::reserve | ( | std::size_t | resSize | ) |
Reserve memory for a number of sections.
This will avoid unnecessary memory re-allocations.
| resSize | The number of sections to reserve memory for. |
| void Channel::resize | ( | std::size_t | newSize | ) |
Resize the section array.
| newSize | The new number of sections. |
|
virtual |
|
inline |
Resize the Section to a new number of data points; deletes all previously stored data when gcc is used.
Note that in the gcc implementation of std::vector, resizing will delete all the original data. This is different from std::vector::resize().
| new_size | The new number of data points. |
| StfnumDll double stfnum::risetime | ( | const std::vector< double > & | data, |
| double | base, | ||
| double | ampl, | ||
| double | left, | ||
| double | right, | ||
| double | frac, | ||
| std::size_t & | tLoId, | ||
| std::size_t & | tHiId, | ||
| double & | tLoReal ) |
Find 20 to 80% rise time of an event in data.
Although t80real is not explicitly returned, it can be calculated from t20Real+risetime.
| data | The data waveform to be analysed. |
| base | The baseline value. |
| ampl | The amplitude of the event (typically, peak-base). |
| left | Delimits the search to the left. |
| right | Delimits the search to the right. |
| t20Id | On exit, the index wich is closest to the 20%-point. |
| t80Id | On exit, the index wich is closest to the 80%-point. |
| t20Real | the linearly interpolated 20%-timepoint in units of sampling points. |
| StfnumDll double stfnum::risetime2 | ( | const std::vector< double > & | data, |
| double | base, | ||
| double | ampl, | ||
| double | left, | ||
| double | right, | ||
| double | frac, | ||
| double & | innerTLoReal, | ||
| double & | innerTHiReal, | ||
| double & | outerTLoReal, | ||
| double & | outerTHiReal ) |
Find 20 to 80% rise time of an event in data.
Although t80real is not explicitly returned, it can be calculated from t20Real+risetime.
| data | The data waveform to be analysed. |
| base | The baseline value. |
| ampl | The amplitude of the event (typically, peak-base). |
| left | Delimits the search to the left. |
| right | Delimits the search to the right. |
| innerTLoReal | interpolated starting point of the inner risetime |
| innerTHiReal | interpolated end point of the inner risetime |
| outerTLoReal | interpolated starting point of the outer risetime |
| outerTHiReal | interpolated end point of the outer risetime the inner rise time is (innerTHiReal-innerTLoReal), the outer rise time is (outerTHiReal-outerTLoReal), in case of noise free data, inner and outer rise time are the same. |
|
inline |
|
inline |
Retrieves the second (reference) channel (read-only)
Definition at line 199 of file recording.h.
|
inline |
Retrieves the currently accessed section in the second (reference) channel (read-only)
Definition at line 184 of file recording.h.
|
explicit |
Default constructor.
|
explicit |
Constructor.
| valA | A vector of values that will make up the section. |
| label | An optional section label string. |
|
explicit |
Yet another constructor.
| size | Number of data points. |
| label | An optional section label string. |
References size().
| stf::SectionAttributes::SectionAttributes | ( | ) |
| stf::SectionPointer::SectionPointer | ( | Section * | pSec = NULL, |
| const SectionAttributes & | sa = SectionAttributes() ) |
| void Recording::SelectTrace | ( | std::size_t | sectionToSelect, |
| std::ptrdiff_t | base_start, | ||
| std::ptrdiff_t | base_end ) |
Selects a section.
| sectionToSelect | The index of the section to be selected. |
| base_start | Start index for baseline |
| base_end | End index for baseline |
|
inline |
| void stfnum::Table::SetColLabel | ( | std::size_t | col, |
| const std::string & | label ) |
Sets the label of a column.
| col | 0-based column index. |
| label | Column label string. |
|
inline |
Sets a comment string.
| value | A string containing a comment. |
Definition at line 257 of file recording.h.
| void Recording::SetCurChIndex | ( | std::size_t | value | ) |
Sets the index of the current channel.
| value | The index of the current channel. |
| void Recording::SetCurSecIndex | ( | std::size_t | value | ) |
Sets the index of the current section.
| value | The index of the current section. |
| int Recording::SetDate | ( | const std::string & | value | ) |
Sets the date of recording as a string.
| value | A string containing the date of recording. |
| int Recording::SetDate | ( | int | year, |
| int | month, | ||
| int | mday ) |
|
inline |
Sets the date and time of recording as struct tm.
| value | has type struct tm |
Definition at line 251 of file recording.h.
| void Recording::SetDateTime | ( | int | year, |
| int | month, | ||
| int | mday, | ||
| int | hour, | ||
| int | minute, | ||
| int | sec ) |
| void stfnum::Table::SetEmpty | ( | std::size_t | row, |
| std::size_t | col, | ||
| bool | value = true ) |
Empties or un-empties a cell.
| row | 0-based row index. |
| col | 0-based column index. |
| value | true if the cell should be empty, false otherwise. |
| void Recording::SetEventDescription | ( | int | type, |
| const char * | Description ) |
Set Description of Event Type.
|
inline |
|
inline |
|
inline |
|
inline |
Sets the file description.
| value | The file description. |
Definition at line 220 of file recording.h.
|
inline |
Sets the common section description.
| value | The common section description. |
Definition at line 225 of file recording.h.
| void Recording::SetGlobalYUnits | ( | std::size_t | n_channel, |
| const std::string & | value ) |
Sets the y units for a channel.
| n_channel | The channel index for which to set the units. |
| value | A string containing the y units. |
| void stfnum::Table::SetRowLabel | ( | std::size_t | row, |
| const std::string & | label ) |
Sets the label of a row.
| row | 0-based row index. |
| label | Row label string. |
|
inline |
Sets the scaling as a string.
| value | A string containing the description. |
Definition at line 232 of file recording.h.
| void Recording::SetSecChIndex | ( | std::size_t | value | ) |
Sets the index of the second channel.
| value | The index of the second channel. |
|
inline |
| void Recording::SetSectionType | ( | size_t | section_number, |
| int | type ) |
Set Type of Section.
| int Recording::SetTime | ( | const std::string & | value | ) |
Sets the time of recording as a string.
| value | A string containing the time of recording. |
| int Recording::SetTime | ( | int | hour, |
| int | minute, | ||
| int | sec ) |
| void Recording::SetXScale | ( | double | value | ) |
Sets the x scaling.
Note that setting the global x-scale will set it for all sections
| value | The x scaling. |
| void Section::SetXScale | ( | double | value | ) |
Sets the x scaling.
| value | The x scaling. |
|
inline |
Sets the x units.
| value | A string containing the x units. |
Definition at line 268 of file recording.h.
|
inline |
|
inline |
|
inline |
Retrieves the size of the channel array.
Definition at line 124 of file recording.h.
|
inline |
|
inline |
| wxString stf::std2wx | ( | const std::string & | sst | ) |
|
inline |
Constructor.
| name_ | Plain function name. |
| pInfo_ | A vector containing information about the function parameters. |
| func_ | The function that will be fitted to the data. |
| jac_ | Jacobian of func_. |
| hasJac_ | true if a Jacobian is available. |
| init_ | A function for initialising the parameters. |
| output_ | Output of the fit. |
Definition at line 281 of file stfnum.h.
References stfnum::defaultOutput(), func, hasJac, init, jac, name, output, and pInfo.
| StfnumDll double stfnum::t_half | ( | const std::vector< double > & | data, |
| double | base, | ||
| double | ampl, | ||
| double | left, | ||
| double | right, | ||
| double | center, | ||
| std::size_t & | t50LeftId, | ||
| std::size_t & | t50RightId, | ||
| double & | t50LeftReal ) |
Find the full width at half-maximal amplitude of an event within data.
Although t50RightReal is not explicitly returned, it can be calculated from t50LeftReal+t_half.
| data | The data waveform to be analysed. |
| base | The baseline value. |
| ampl | The amplitude of the event (typically, peak-base). |
| left | Delimits the search to the left. |
| right | Delimits the search to the right. |
| center | The estimated center of an event from which to start searching to the left and to the right (typically, the index of the peak). |
| t50LeftId | On exit, the index wich is closest to the left 50%-point. |
| t50RightId | On exit, the index wich is closest to the right 50%-point. |
| t50LeftReal | the linearly interpolated left 50%-timepoint in units of sampling points. |
| stfnum::Table::Table | ( | const std::map< std::string, double > & | map | ) |
Constructor.
| map | A map used to initialise the table. |
| stfnum::Table::Table | ( | std::size_t | nRows, |
| std::size_t | nCols ) |
| StfnumDll double stfnum::threshold | ( | const std::vector< double > & | data, |
| std::size_t | llp, | ||
| std::size_t | ulp, | ||
| double | slope, | ||
| double & | thrT, | ||
| std::size_t | windowLength ) |
Find the value within data between llp and ulp at which slope is exceeded.
| data | The data waveform to be analysed. |
| llp | Lower limit of the peak window. |
| ulp | Upper limit of the peak window. |
| thrT | On exit, The interpolated time point of the threshold crossing in units of sampling points, or a negative value if the threshold wasn't found. |
| windowLength | is the distance (in number of samples) used to compute the difference, the default value is 1. |
References StfnumDll.
Referenced by peakIndices().
| bool Recording::UnselectTrace | ( | std::size_t | sectionToUnselect | ) |
Unselects a section if it was selected before.
| sectionToUnselect | The index of the section to be unselected. |
|
virtual |
Updates the progress info.
| value | New value of the progress meter |
| newmsg | New message for the info text |
| skip | This is set to true if the user has chosen to skip the operation |
Implements stfio::ProgressInfo.
|
inline |
| std::size_t stfnum::whereis | ( | const Vector_double & | data, |
| double | value ) |
Finds the index of data where value is encountered for the first time.
| data | The waveform to be searched. |
| value | The value to be found. |
References StfnumDll.
| std::string stf::wx2std | ( | const wxString & | wxs | ) |
| stf::wxProgressInfo::wxProgressInfo | ( | const std::string & | title, |
| const std::string & | message, | ||
| int | maximum, | ||
| bool | verbose = true ) |
| double stfnum::xscale | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
Scales a parameter that linearly depends on x.
| The | parameter to scale |
| xscale | x scaling factor |
| xoff | x offset |
| yscale | y scaling factor |
| yoff | y offset |
References xscale(), and yscale().
Referenced by noscale(), xscale(), xunscale(), yscale(), yscaleoffset(), yunscale(), and yunscaleoffset().
| double stfnum::xunscale | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
| double stfnum::yscale | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
Scales a parameter that linearly depends on y.
| The | parameter to scale |
| xscale | x scaling factor |
| xoff | x offset |
| yscale | y scaling factor |
| yoff | y offset |
References xscale(), and yscale().
Referenced by noscale(), xscale(), xunscale(), yscale(), yscaleoffset(), yunscale(), and yunscaleoffset().
| double stfnum::yscaleoffset | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
| double stfnum::yunscale | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
| double stfnum::yunscaleoffset | ( | double | param, |
| double | xscale, | ||
| double | xoff, | ||
| double | yscale, | ||
| double | yoff ) |
| Channel::~Channel | ( | ) |
Destructor.
| stf::Event::~Event | ( | ) |
Destructor.
|
inline |
|
inline |
|
virtual |
Destructor.
| Section::~Section | ( | ) |
Destructor.
| stfnum::Table stf::SectionAttributes::bestFit |
| Vector_double stf::SectionAttributes::bestFitP |
| double stfnum::parInfo::constr_lb |
| double stfnum::parInfo::constr_ub |
| bool stfnum::parInfo::constrained |
| Vector_double stf::UserInput::defaults |
| std::string stfnum::parInfo::desc |
| std::string stf::Extension::description |
| std::vector<stf::Event> stf::SectionAttributes::eventList |
| stfnum::storedFunc* stf::SectionAttributes::fitFunc |
| Func stfnum::storedFunc::func |
The function that will be fitted to the data.
Definition at line 303 of file stfnum.h.
Referenced by storedFunc().
| bool stfnum::storedFunc::hasJac |
True if the function has an analytic Jacobian.
Definition at line 306 of file stfnum.h.
Referenced by storedFunc().
| int stf::Extension::id |
| int stf::Plugin::id |
| Init stfnum::storedFunc::init |
A function for initialising the parameters.
Definition at line 304 of file stfnum.h.
Referenced by storedFunc().
| UserInput stf::Plugin::input |
| Jac stfnum::storedFunc::jac |
| std::vector<std::string> stf::UserInput::labels |
| std::string stf::Extension::menuEntry |
Menu entry string for this extension.
Definition at line 226 of file stf.h.
Referenced by Extension().
| wxString stf::Plugin::menuEntry |
| wxFFile stf::ifstreamMan::myStream |
The managed stream.
Definition at line 245 of file stf.h.
Referenced by ifstreamMan(), and ~ifstreamMan().
| wxFFile stf::ofstreamMan::myStream |
The managed stream.
Definition at line 261 of file stf.h.
Referenced by ofstreamMan(), and ~ofstreamMan().
|
static |
Static extension counter. Initialised in extensions/extensions.cpp.
Definition at line 225 of file stf.h.
Referenced by Extension().
|
static |
| std::string stfnum::storedFunc::name |
| Output stfnum::storedFunc::output |
| const double stf::PI =3.14159265358979323846 |
| std::vector<parInfo> stfnum::storedFunc::pInfo |
A vector containing information about the function parameters.
Definition at line 302 of file stfnum.h.
Referenced by storedFunc().
| PluginFunc stf::Plugin::pluginFunc |
| void* stf::Extension::pyFunc |
| std::vector<stf::PyMarker> stf::SectionAttributes::pyMarkers |
| Vector_double stf::SectionAttributes::quad_p |
| bool stf::Extension::requiresFile |
Whether a file needs to be open for this function to work
Definition at line 229 of file stf.h.
Referenced by Extension().
| Scale stfnum::parInfo::scale |
| SectionAttributes stf::SectionPointer::sec_attr |
| std::string stf::UserInput::title |
| bool stfnum::parInfo::toFit |
| Scale stfnum::parInfo::unscale |
| double stf::PyMarker::x |
x-coordinate in units of sampling points
Definition at line 329 of file stf.h.
Referenced by PyMarker().
| double stf::PyMarker::y |
y-coordinate in trace units (e.g. mV)
Definition at line 330 of file stf.h.
Referenced by PyMarker().