Vespucci  1.0.0
integration.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright (C) 2014-2016 Wright State University - All Rights Reserved
3  Daniel P. Foose - Maintainer/Lead Developer
4 
5  This file is part of Vespucci.
6 
7  Vespucci is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Vespucci is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Vespucci. If not, see <http://www.gnu.org/licenses/>.
19 *******************************************************************************/
20 #ifndef INTEGRATION_H
21 #define INTEGRATION_H
22 #if !defined( SWIG )
23  // SWIG should not see #inlcude<armadillo> as it can not handle it
24  #include "Math/VespucciMath.h"
25  #include "Global/libvespucci.h"
26 #endif
27 namespace Vespucci{
28  namespace Math{
29  namespace Quantification{
30  VESPUCCI_EXPORT double IntegratePeak(const arma::vec &X, arma::uword min_index, arma::uword max_index, double abscissa_step, arma::vec &baseline, bool correct_baseline);
31  VESPUCCI_EXPORT arma::vec IntegratePeakMat(const arma::mat &X, const arma::vec &abscissa, double &min, double &max, arma::mat &baselines, arma::uvec &boundaries, bool correct_baseline);
32 
33  VESPUCCI_EXPORT arma::mat IntegratePeaksMat(const arma::mat &X, const arma::vec &abscissa,
34  double &first_min, double &first_max,
35  double &second_min, double &second_max,
36  arma::mat &first_baselines, arma::mat &second_baselines, arma::uvec &boundaries);
37 
38  VESPUCCI_EXPORT arma::vec IntegratePeakMat(const arma::mat &X, const arma::vec &abscissa,
39  double &min, double &max,
40  arma::field<arma::vec> &baselines,
41  arma::uvec &boundaries, arma::uword bound_window, bool correct_baseline);
42 
43 
44  VESPUCCI_EXPORT arma::mat IntegratePeaksMat(const arma::mat &X, const arma::vec &abscissa,
45  double &first_min, double &first_max,
46  double &second_min, double &second_max,
47  arma::field<arma::vec> &first_baselines, arma::field<arma::vec> &second_baselines,
48  arma::uvec &boundaries, arma::uword bound_window);
49 
50  }
51  }
52 }
53 #endif // INTEGRATION_H
VESPUCCI_EXPORT arma::vec IntegratePeakMat(const arma::mat &X, const arma::vec &abscissa, double &min, double &max, arma::mat &baselines, arma::uvec &boundaries, bool correct_baseline)
Vespucci::Math::Quantification::IntegratePeakMat.
Definition: integration.cpp:57
VESPUCCI_EXPORT arma::uword max(arma::uword a, arma::uword b)
Vespucci::Math::max.
Definition: accessory.cpp:237
VESPUCCI_EXPORT arma::uword min(arma::uword a, arma::uword b)
Vespucci::Math::min.
Definition: accessory.cpp:249
VESPUCCI_EXPORT arma::mat IntegratePeaksMat(const arma::mat &X, const arma::vec &abscissa, double &first_min, double &first_max, double &second_min, double &second_max, arma::mat &first_baselines, arma::mat &second_baselines, arma::uvec &boundaries)
Vespucci::Math::Quantification::IntegratePeaksMat.
Definition: integration.cpp:91
#define VESPUCCI_EXPORT
Definition: libvespucci.h:7
A namespace for "global" functions, including math functions.
VESPUCCI_EXPORT double IntegratePeak(const arma::vec &X, arma::uword min_index, arma::uword max_index, double abscissa_step, arma::vec &baseline, bool correct_baseline)
Vespucci::Math::Quantification::IntegratePeak.
Definition: integration.cpp:31