Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
measure.h
Go to the documentation of this file.
1// Header file for the stimfit namespace
2// Routines for measuring basic event properties
3// last revision: 24-Jan-2011
4// C. Schmidt-Hieber, christsc@gmx.de
5
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 2
9// of the License, or (at your option) any later version.
10
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
28
29#ifndef _MEASLIB_H
30#define _MEASLIB_H
31
32#include <vector>
33
34#include "stfnum.h"
35#include "../libstfio/stfio.h"
36
37namespace stfnum {
38
42
44
54double base(enum stfnum::baseline_method method, double& var, const std::vector<double>& data, std::size_t llb, std::size_t ulb);
55
56
58
75double peak( const std::vector<double>& data, double base, std::size_t llp, std::size_t ulp,
76 int pM, stfnum::direction, double& maxT);
77
79
90double threshold( const std::vector<double>& data, std::size_t llp, std::size_t ulp, double slope, double& thrT, std::size_t windowLength );
91
93
109double risetime(const std::vector<double>& data, double base, double ampl,
110 double left, double right, double frac, std::size_t& tLoId, std::size_t& tHiId,
111 double& tLoReal);
112
114
133double risetime2(const std::vector<double>& data, double base, double ampl,
134 double left, double right, double frac,
135 double& innerTLoReal, double& innerTHiReal, double& outerTLoReal, double& outerTHiReal );
136
138
155double t_half( const std::vector<double>& data, double base, double ampl, double left, double right,
156 double center, std::size_t& t50LeftId, std::size_t& t50RightId, double& t50LeftReal );
157
159
170double maxRise( const std::vector<double>& data, double left, double right, double& maxRiseT,
171 double& maxRiseY, std::size_t windowLength);
172
174
185double maxDecay( const std::vector<double>& data, double left, double right, double& maxDecayT,
186 double& maxDecayY, std::size_t windowLength);
187
188#ifdef WITH_PSLOPE
190
195double pslope( const std::vector<double>& data, std::size_t left, std::size_t right);
196
197#endif
199
200}
201
202#endif
WORD TpMarker pM
Definition Son.h:306
StfnumDll double 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 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.
direction
The direction of peak calculations.
Definition stfnum.h:530
StfnumDll double 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 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 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 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 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.
baseline_method
Methods for Baseline computation.
Definition stfnum.h:538
StfnumDll double 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.
Definition fit.h:32
header file for libstfio
Math functions.
#define StfnumDll
Defines dll export or import functions for libstfnum on Windows.
Definition stfnum.h:38