1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

code cleaning

This commit is contained in:
Antonin Portelli 2015-06-11 14:03:41 +01:00
parent 49bca8e686
commit bd770cebb5
3 changed files with 8 additions and 9 deletions

View File

@ -9,12 +9,12 @@ case $1 in
make -j8 make -j8
echo '-- installing...' echo '-- installing...'
make uninstall 1>/dev/null make uninstall 1>/dev/null
make install 1>/dev/null make install 1>/dev/null;;
if [[ `basename \`pwd\`` == "lib" ]] # if [[ `basename \`pwd\`` == "lib" ]]
then # then
echo '-- creating debug symbols...' # echo '-- creating debug symbols...'
dsymutil .libs/libLatAnalyze.0.dylib -o ${PREFIX}/lib/libLatAnalyze.0.dylib.dSYM # dsymutil .libs/libLatAnalyze.0.dylib -o ${PREFIX}/lib/libLatAnalyze.0.dylib.dSYM
fi;; # fi;;
'clean') 'clean')
echo '-- cleaning...' echo '-- cleaning...'
make -j8 clean;; make -j8 clean;;

View File

@ -20,7 +20,6 @@
#include <LatAnalyze/Derivative.hpp> #include <LatAnalyze/Derivative.hpp>
#include <LatAnalyze/includes.hpp> #include <LatAnalyze/includes.hpp>
#include <LatAnalyze/Math.hpp> #include <LatAnalyze/Math.hpp>
#include <gsl/gsl_deriv.h>
using namespace std; using namespace std;
using namespace Latan; using namespace Latan;

View File

@ -19,7 +19,6 @@
#include <iostream> #include <iostream>
#include <LatAnalyze/AsciiFile.hpp> #include <LatAnalyze/AsciiFile.hpp>
#include <LatAnalyze/Plot.hpp>
using namespace std; using namespace std;
using namespace Latan; using namespace Latan;
@ -29,13 +28,14 @@ int main(int argc, char *argv[])
if (argc != 2) if (argc != 2)
{ {
cerr << "usage: " << argv[0] << " <file>" << endl; cerr << "usage: " << argv[0] << " <file>" << endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
string fileName = argv[1]; string fileName = argv[1];
cout << "-- loading sample from '" << fileName << "'..." << endl; cout << "-- loading sample from '" << fileName << "'..." << endl;
const DMatSample &s = Io::load<DMatSample, AsciiFile>(fileName); DMatSample s = Io::load<DMatSample, AsciiFile>(fileName);
cout << scientific; cout << scientific;
cout << "central value:\n" << s[central] << endl; cout << "central value:\n" << s[central] << endl;
cout << "standard deviation:\n" << s.variance().cwiseSqrt() << endl; cout << "standard deviation:\n" << s.variance().cwiseSqrt() << endl;