24 #include "..\..\persistence1d\persistence1d.hpp"
38 char * filename =
"data.txt";
41 vector<TPairedExtrema> pairs;
48 datafile.open(filename);
51 cout <<
"Cannot open data file for reading: " << filename << endl;
56 while(datafile >> currdata)
58 data.push_back(currdata);
80 float filterThreshold = (pairs.front().Persistence + pairs.back().Persistence)/2;
87 cout <<
"Filtered results with persistence > " << filterThreshold << endl;
93 cout <<
"Global minimum value: " << globalMinValue
94 <<
" index: " << globalMinIndex << endl << endl;
97 cout <<
"PrintResults(filterThreshold) results:" << endl;
102 filterThreshold = pairs.back().Persistence + 1;
106 cout <<
"Filtered results with persistence > " << filterThreshold << endl;
107 cout <<
"Number of found paired extrema: " << pairs.size() << endl;
110 cout <<
"PrintPairs(pairs) start" << endl;
112 cout <<
"PrintPairs(pairs) end" << endl << endl;