Vespucci  1.0.0
Vespucci::Math::Transform Namespace Reference

Functions

VESPUCCI_EXPORT arma::mat cwt (arma::vec X, std::string wavelet, arma::uvec scales)
 Vespucci::Math::Transform::cwt. More...
 
VESPUCCI_EXPORT arma::mat cwt_mat (arma::mat X, std::string wavelet, arma::uword qscale)
 
VESPUCCI_EXPORT arma::vec cwt_spdbc (const arma::vec &X, std::string wavelet, arma::uword qscale, double threshold, std::string threshold_method, arma::uword window_size, arma::umat &peak_extrema, arma::vec &baseline)
 
VESPUCCI_EXPORT arma::mat cwt_spdbc_mat (const arma::mat &X, std::string wavelet, arma::uword qscale, double threshold, std::string threshold_method, arma::uword window_size, arma::field< arma::umat > &peak_positions, arma::mat &baselines)
 
VESPUCCI_EXPORT arma::field< arma::mat > cwt_multi_mat (arma::mat X, std::string wavelet, arma::uvec scales)
 
VESPUCCI_EXPORT arma::field< arma::mat > cwt_multi (const arma::mat &X, std::string wavelet, arma::uvec scales)
 Vespucci::Math::Transform::cwt_multi. More...
 
VESPUCCI_EXPORT arma::mat cwtPeakAnalysis (const arma::mat &X, std::string wavelet, arma::uword qscale, double threshold, std::string threshold_method, arma::mat &transform)
 
VESPUCCI_EXPORT arma::mat FindRidges (arma::mat coefs)
 
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. More...
 
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. More...
 
VESPUCCI_EXPORT arma::mat ApplyWeights (const arma::mat &signal, const arma::vec &abscissa, const std::string &weight, const double &param)
 Vespucci::Math::Transform::ApplyWeights. More...
 
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. More...
 

Function Documentation

arma::mat Vespucci::Math::Transform::ApplySBWeights ( const arma::mat &  signal,
const arma::vec &  abscissa,
const double &  starting_offset,
const double &  ending_offset,
const double &  power 
)

Vespucci::Math::Transform::ApplyWeights.

Parameters
signal
abscissa
weight
param
cut_off
Returns

Definition at line 150 of file fft.cpp.

arma::mat Vespucci::Math::Transform::ApplyWeights ( const arma::mat &  signal,
const arma::vec &  abscissa,
const std::string &  weight,
const double &  param 
)

Vespucci::Math::Transform::ApplyWeights.

Parameters
signal
abscissa
weight
param
Returns
Apply weights to the time-domain signal signal

Definition at line 119 of file fft.cpp.

arma::mat Vespucci::Math::Transform::cwt ( arma::vec  X,
std::string  wavelet,
arma::uvec  scales 
)

Vespucci::Math::Transform::cwt.

Parameters
X
wavelet
scalesA vector of arma::uwords containing the scales to calculate
Returns
A arma::matrix containing vectors of CWT coefficients as columns (this is the transpose of the result produced by arma::matlab/octave and Zhang's R code).

Calculate the CWT coefficients for the scales in scales for the vector X. This code is translated from the R package baselineWavelet by Zhang. Zhang, Z.-M., Chen, S., Liang, Y.-Z., Liu, Z.-X., Zhang, Q.-M., Ding, L.-X., Ye, F. and Zhou, H. (2010), An intelligent background-correction algorithm for highly fluorescent samples in Raman spectroscopy. J. Raman Spectrosc., 41: 659–669. doi: 10.1002/jrs.2500

Definition at line 42 of file cwt.cpp.

VESPUCCI_EXPORT arma::mat Vespucci::Math::Transform::cwt_mat ( arma::mat  X,
std::string  wavelet,
arma::uword  qscale 
)
arma::field< arma::mat > Vespucci::Math::Transform::cwt_multi ( const arma::mat &  X,
std::string  wavelet,
arma::uvec  scales 
)

Vespucci::Math::Transform::cwt_multi.

Parameters
X
wavelet
scales
Returns
This may be deprecated by putting this loop in cwt

Definition at line 227 of file cwt.cpp.

VESPUCCI_EXPORT arma::field<arma::mat> Vespucci::Math::Transform::cwt_multi_mat ( arma::mat  X,
std::string  wavelet,
arma::uvec  scales 
)
arma::vec Vespucci::Math::Transform::cwt_spdbc ( const arma::vec &  X,
std::string  wavelet,
arma::uword  qscale,
double  threshold,
std::string  threshold_method,
arma::uword  window_size,
arma::umat &  peak_extrema,
arma::vec &  baseline 
)

Definition at line 123 of file cwt.cpp.

arma::mat Vespucci::Math::Transform::cwt_spdbc_mat ( const arma::mat &  X,
std::string  wavelet,
arma::uword  qscale,
double  threshold,
std::string  threshold_method,
arma::uword  window_size,
arma::field< arma::umat > &  peak_positions,
arma::mat &  baselines 
)

Definition at line 150 of file cwt.cpp.

arma::mat Vespucci::Math::Transform::cwtPeakAnalysis ( const arma::mat &  X,
std::string  wavelet,
arma::uword  qscale,
double  threshold,
std::string  threshold_method,
arma::mat &  transform 
)

Definition at line 188 of file cwt.cpp.

void Vespucci::Math::Transform::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.

Parameters
t_signal
t_abscissa
f_signal
f_abscissa
nPerform fourier transform on the time-domain signal t_signal with size n

Definition at line 29 of file fft.cpp.

VESPUCCI_EXPORT arma::mat Vespucci::Math::Transform::FindRidges ( arma::mat  coefs)
void Vespucci::Math::Transform::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.

Parameters
f_signal
f_abscissa
t_signal
t_abscissa
nPerform the inverse fourier transform on the frequency-domain signal f_signal

Definition at line 72 of file fft.cpp.