From 689957f1725f38e2ecb7b5d2f8085e60317b958c Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 14 Jun 2012 18:56:55 -0400 Subject: renaming to FilterFlyMask and moving more misc to misc --- fly-tools/StandardDeviation.cpp | 90 ----------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 fly-tools/StandardDeviation.cpp (limited to 'fly-tools/StandardDeviation.cpp') diff --git a/fly-tools/StandardDeviation.cpp b/fly-tools/StandardDeviation.cpp deleted file mode 100644 index a157d11..0000000 --- a/fly-tools/StandardDeviation.cpp +++ /dev/null @@ -1,90 +0,0 @@ -#include -#include -#include -#include -#include -using namespace std; - -vector currentHistogramValues; - -int main(int argc, char* argv[]) { - - // argv[0] name of the executable - // argv[1] input file containing the list of files - // argv[2] output file containing the standard deviation and file name pair - // argv[3] data file path - // argv[4] data file postfix of metricname - - if (argc < 3) { - cout<<"Please provide the parameters ./executable iputfilename outputfilename"<>currentFileName) { - - string currentFileWithExtension = prefixPath + currentFileName + "/" + currentFileName + "_"+ metricName +".txt"; - ifstream currentFile(currentFileWithExtension.c_str()); - if (currentFile.fail() == true) { - cout << currentFileName + " cannot be opened"<> currentValueOfHistogram) { - sumOfValues = sumOfValues + i*currentValueOfHistogram; - currentHistogramValues.push_back(currentValueOfHistogram); - - N = N + currentValueOfHistogram; - i=i+1.0; - } - - M = currentHistogramValues.size(); - // mean - double mean = sumOfValues/N; - - - // sigma^2 = (sum( (i-mean)^2*H_i ) )/(N-1) for i = 0 to M-1 - double standardDev = 0.0; - double sumSquaredResults = 0.0; - int j = 0; - for (i=0.0; i