Vespucci  1.0.0
fft.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 FFT_H
21 #define FFT_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 Transform{
30  VESPUCCI_EXPORT void fft_mat(const arma::mat &t_signal,
31  const arma::vec &t_abscissa,
32  arma::cx_mat &f_signal,
33  arma::vec &f_abscissa,
34  arma::uword n);
35  VESPUCCI_EXPORT void ifft_mat(const arma::cx_mat &f_signal,
36  const arma::vec f_abscissa,
37  arma::cx_mat &t_signal,
38  arma::vec &t_abscissa,
39  arma::uword n);
40  VESPUCCI_EXPORT arma::mat ApplyWeights(const arma::mat &signal,
41  const arma::vec &abscissa,
42  const std::string &weight,
43  const double &param);
44  VESPUCCI_EXPORT arma::mat ApplySBWeights(const arma::mat &signal,
45  const arma::vec &abscissa,
46  const double &starting_offset,
47  const double &ending_offset,
48  const double &power);
49  }
50 }
51 }
52 #endif // FFT_H
VESPUCCI_EXPORT arma::mat ApplyWeights(const arma::mat &signal, const arma::vec &abscissa, const std::string &weight, const double &param)
Vespucci::Math::Transform::ApplyWeights.
Definition: fft.cpp:119
VESPUCCI_EXPORT void ifft_mat(const arma::cx_mat &f_signal, const arma::vec f_abscissa, arma::cx_mat &t_signal, arma::vec &t_abscissa, arma::uword n)
Vespucci::Math::Transform::ifft_mat.
Definition: fft.cpp:72
#define VESPUCCI_EXPORT
Definition: libvespucci.h:7
VESPUCCI_EXPORT arma::mat ApplySBWeights(const arma::mat &signal, const arma::vec &abscissa, const double &starting_offset, const double &ending_offset, const double &power)
Vespucci::Math::Transform::ApplyWeights.
Definition: fft.cpp:150
A namespace for "global" functions, including math functions.
VESPUCCI_EXPORT void fft_mat(const arma::mat &t_signal, const arma::vec &t_abscissa, arma::cx_mat &f_signal, arma::vec &f_abscissa, arma::uword n)
Vespucci::Math::Transform::fft_mat.
Definition: fft.cpp:29