mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-06-19 15:57:05 +01:00
code cleaning
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <LatAnalyze/AsciiFile.hpp>
|
||||
#include <LatAnalyze/Plot.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace Latan;
|
||||
@ -29,13 +28,14 @@ int main(int argc, char *argv[])
|
||||
if (argc != 2)
|
||||
{
|
||||
cerr << "usage: " << argv[0] << " <file>" << endl;
|
||||
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
string fileName = argv[1];
|
||||
|
||||
cout << "-- loading sample from '" << fileName << "'..." << endl;
|
||||
const DMatSample &s = Io::load<DMatSample, AsciiFile>(fileName);
|
||||
DMatSample s = Io::load<DMatSample, AsciiFile>(fileName);
|
||||
cout << scientific;
|
||||
cout << "central value:\n" << s[central] << endl;
|
||||
cout << "standard deviation:\n" << s.variance().cwiseSqrt() << endl;
|
||||
|
Reference in New Issue
Block a user