UnivTools.h
Go to the documentation of this file.
1 #ifndef _un2_UnivTools_h_
2 #define _un2_UnivTools_h_
3 
4 #include <vector>
5 
6 
7 namespace un2 {
8 
9  // find peaks in a signal trace
10  // modified version of the z-scores algorithm from
11  // https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data
12  // https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data/46956908#46956908
13  std::vector<std::vector<double>>
14  FindPeaks(const std::vector<double>& input, const double totalThreshold);
15 
16  double
17  MIPtoMIPpersqm(const double MIPval, const double theta = 0);
18 
19  std::vector<double>
20  MIPtoMIPpersqm(const std::vector<double>& MIPvals, const double theta = 0);
21 
22  double
23  VEMtoVEMpersqm(const double VEMval, const double theta = 0);
24 
25  std::vector<double>
26  VEMtoVEMpersqm(const std::vector<double>& MIPvals, const double theta = 0);
27 
28 }
29 
30 
31 #endif
double VEMtoVEMpersqm(const double VEMval, const double theta)
Definition: UnivTools.cc:80
double MIPtoMIPpersqm(const double mIPval, const double theta)
Definition: UnivTools.cc:63
std::vector< std::vector< double > > FindPeaks(const std::vector< double > &input, const double totalThreshold)
Definition: UnivTools.cc:9

, generated on Tue Sep 26 2023.