Vespucci  1.0.0
vespucci.h
Go to the documentation of this file.
1 #ifndef VESPUCCI_H
2 #define VESPUCCI_H
3 #if !defined( SWIG )
4  // SWIG should not see #inlcude<armadillo> as it can not handle it
5  #include <mlpack/core.hpp>
6  #include "Global/libvespucci.h"
7 #endif
8 #include <iostream>
9 #include <stdlib.h>
10 #include <string>
11 #include <map>
12 
17 namespace Vespucci{
18 
19  VESPUCCI_EXPORT bool SaveHDF5Obj(std::map<std::string, arma::mat*> objects, const std::string filename);
20  VESPUCCI_EXPORT bool SaveOldVespucciBinary(std::string filename, const arma::mat &spectra, const arma::vec &x, const arma::vec &y, const arma::vec &abscissa);
21  VESPUCCI_EXPORT bool SaveText(std::string basename, const arma::mat &spectra, const arma::vec &x, const arma::vec &y, const arma::vec &abscissa, arma::file_type type);
22  VESPUCCI_EXPORT bool StitchDatasets(const arma::field<arma::field<arma::mat> > &datasets, arma::mat &spectra, arma::vec &x, arma::vec &y, arma::vec &abscissa);
23  VESPUCCI_EXPORT void ResetDataset(arma::mat &spectra, arma::vec &x, arma::vec &y, arma::vec &abscissa);
24  VESPUCCI_EXPORT std::string CleanString(const std::string &in);
25 }
26 
27 
28 #endif // VESPUCCI_H
29 
VESPUCCI_EXPORT std::string CleanString(const std::string &in)
Vespucci::CleanString.
Definition: vespucci.cpp:240
VESPUCCI_EXPORT bool StitchDatasets(const arma::field< arma::field< arma::mat > > &datasets, arma::mat &spectra, arma::vec &x, arma::vec &y, arma::vec &abscissa)
Vespucci::StitchDatasets.
Definition: vespucci.cpp:114
VESPUCCI_EXPORT bool SaveOldVespucciBinary(std::string filename, const arma::mat &spectra, const arma::vec &x, const arma::vec &y, const arma::vec &abscissa)
Vespucci::SaveVespucciBinary.
Definition: vespucci.cpp:36
#define VESPUCCI_EXPORT
Definition: libvespucci.h:7
VESPUCCI_EXPORT bool SaveHDF5Obj(std::map< std::string, arma::mat * > objects, const std::string filename)
VESPUCCI_EXPORT void ResetDataset(arma::mat &spectra, arma::vec &x, arma::vec &y, arma::vec &abscissa)
Definition: vespucci.cpp:226
VESPUCCI_EXPORT bool SaveText(std::string basename, const arma::mat &spectra, const arma::vec &x, const arma::vec &y, const arma::vec &abscissa, arma::file_type type)
Definition: vespucci.cpp:59
A namespace for "global" functions, including math functions.