22 #include <mlpack/core.hpp> 65 arma::uword n_rows, arma::uword n_cols,
66 arma::uword &i, arma::uword &j);
106 const arma::vec &fit,
107 arma::vec &residuals);
VESPUCCI_EXPORT arma::vec WavenumberToWavelength(const arma::vec &x, double wn_factor, double wl_factor)
Vespucci::Math::WavenumberToWavelength.
VESPUCCI_EXPORT arma::mat orth(arma::mat X)
orth Returns an orthonormal basis of the range space of A
VESPUCCI_EXPORT arma::vec WavelengthToEnergy(const arma::vec &x, double energy_factor, double wl_factor)
Vespucci::Math::WavelengthToEnergy.
VESPUCCI_EXPORT arma::vec EnergyToWavelength(const arma::vec &x, double wl_factor, double energy_factor)
Vespucci::Math::EnergyToWavelength.
VESPUCCI_EXPORT bool IsMonotonic(const arma::vec &x)
IsMonotonic.
VESPUCCI_EXPORT arma::sp_mat LocalMaximaWindow(const arma::mat &X, const int window_size)
Vespucci::Math::LocalMaximaWindow "Cleans" local maximum by window search to remove extraneous values...
VESPUCCI_EXPORT arma::vec ExtendToNextPow(arma::vec X, arma::uword n)
VESPUCCI_EXPORT bool AreEqual(const arma::vec &a, const arma::vec &b)
AreEqual.
VESPUCCI_EXPORT double RecalculateAverage(double new_value, double old_average, double old_count)
Vespucci::Math::RecalculateAverage Recalculate the average value when a new value is added to a list ...
VESPUCCI_EXPORT arma::uword max(arma::uword a, arma::uword b)
Vespucci::Math::max.
VESPUCCI_EXPORT arma::sp_mat LocalMinimaCWT(arma::mat coefs, arma::uvec scales, arma::uword min_window_size, double amplitude_threshold)
VESPUCCI_EXPORT arma::vec EnergyToFrequency(const arma::vec &x, double freq_factor, double energy_factor)
Vespucci::Math::EnergyToFrequency.
VESPUCCI_EXPORT arma::vec RepresentativeSpectrum(const arma::mat &spectra, arma::uword &index, std::string metric_name="euclidean", std::string center="centroid")
Vespucci::Math::RepresentativeSpectrum.
VESPUCCI_EXPORT arma::vec WavenumberToEnergy(const arma::vec &x, double energy_factor, double wn_factor)
Vespucci::Math::WavenumberToEnergy.
VESPUCCI_EXPORT double CalculateRSquared(const arma::vec &data, const arma::vec &fit, arma::vec &residuals)
Vespucci::Math::CalculateRSquared.
VESPUCCI_EXPORT arma::vec WavelengthToFrequency(const arma::vec &x, double freq_factor, double wl_factor)
Vespucci::Math::WavelengthToFrequency.
VESPUCCI_EXPORT void position(arma::uword index, arma::uword n_rows, arma::uword n_cols, arma::uword &i, arma::uword &j)
Vespucci::Math::position Find row and column numbers for index.
VESPUCCI_EXPORT arma::uword LocalMinimum(const arma::mat &X, double &value)
Vespucci::Math::LocalMinimum.
VESPUCCI_EXPORT arma::mat spdiags(arma::mat B, arma::ivec d, arma::uword m, arma::uword n)
spdiags analgous to the Octave/arma::matLAB function A = spdiags(B, d, m, n).
VESPUCCI_EXPORT arma::uword LocalMaximum(const arma::vec &X, double &value)
Vespucci::Math::LocalMaximum.
VESPUCCI_EXPORT arma::uvec Intersection(arma::uvec &x, arma::uvec &y)
Vespucci::Math::Intersection.
VESPUCCI_EXPORT double RecalculateStdDev(double new_value, double old_mean, double old_stddev, double old_count)
Vespucci::Math::RecalculateStdDev Recalculate a standard deviation when a new value is added to a lis...
VESPUCCI_EXPORT arma::sp_mat LocalMinima(const arma::mat &X)
Vespucci::Math::LocalMinima.
VESPUCCI_EXPORT bool IsIncreasing(const arma::vec &x)
IsIncreasing.
VESPUCCI_EXPORT arma::mat SafeRows(const arma::mat &x, arma::uword a, arma::uword b)
Vespucci::Math::SafeRows.
VESPUCCI_EXPORT arma::sp_mat LocalMaxima(const arma::mat &X)
Vespucci::Math::LocalMaxima.
VESPUCCI_EXPORT arma::vec FrequencyToEnergy(const arma::vec &x, double energy_factor, double freq_factor)
Vespucci::Math::FrequencyToEnergy.
VESPUCCI_EXPORT arma::vec FrequencyToWavenumber(const arma::vec &x, double wn_factor, double freq_factor)
Vespucci::Math::FrequencyToWavenumber.
VESPUCCI_EXPORT arma::uword min(arma::uword a, arma::uword b)
Vespucci::Math::min.
VESPUCCI_EXPORT arma::sp_mat LocalMinimaWindow(const arma::mat &X, const int window_size)
Vespucci::Math::LocalMinimaWindow.
VESPUCCI_EXPORT double CalcPoly(const double x, const arma::vec &coefs)
Vespucci::Math::CalcPoly Calculate the value of a polynomial at particular point. ...
VESPUCCI_EXPORT arma::vec EnergyToWavenumber(const arma::vec &x, double wn_factor, double energy_factor)
Vespucci::Math::EnergyToWavenumber.
VESPUCCI_EXPORT arma::sp_mat LocalMaximaCWT(arma::mat coefs, arma::uvec scales, arma::uword min_window_size)
VESPUCCI_EXPORT arma::uword ClosestIndex(double value, const arma::vec &vector)
Vespucci::Math::ClosestIndex.
VESPUCCI_EXPORT arma::uword NextPow(arma::uword number, arma::uword power)
VESPUCCI_EXPORT arma::umat GetClosestValues(arma::vec query, arma::vec target, const arma::uword k=5)
Vespucci::Math::GetClosestValues.
VESPUCCI_EXPORT arma::vec WavelengthToWavenumber(const arma::vec &x, double wl_factor, double wn_factor)
Vespucci::Math::WavelengthToWavenumber.
VESPUCCI_EXPORT double quantile(arma::vec &data, double probs)
VESPUCCI_EXPORT arma::cx_vec cx_zeros(arma::uword n)
Vespucci::Math::cx_zeros.
VESPUCCI_EXPORT arma::umat to_row_column(arma::uvec indices, arma::uword n_rows, arma::uword n_cols)
A namespace for "global" functions, including math functions.
VESPUCCI_EXPORT arma::vec FrequencyToWavelength(const arma::vec &x, double wl_factor, double freq_factor)
Vespucci::Math::FrequencyToWavelength.
VESPUCCI_EXPORT arma::vec WavenumberToFrequency(const arma::vec &x, double freq_factor, double wn_factor)
Vespucci::Math::WavenumberToFrequency.