diff options
author | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-09 14:55:03 +0000 |
---|---|---|
committer | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-09 14:55:03 +0000 |
commit | b7b23c26b855b83d03870cfd90b001fa2dedfd86 (patch) | |
tree | df1989bb5a51ca6e68e5932a943be11aaa568ce3 /src/Gudhi_stat/example/persistence_intervals.cpp | |
parent | 28fd0e09e42425b12929990542f739f8334c13f0 (diff) |
Fix to Marc's comments.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@1841 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: c5be190621dcbb43433c027c78e782916cc6ae93
Diffstat (limited to 'src/Gudhi_stat/example/persistence_intervals.cpp')
-rw-r--r-- | src/Gudhi_stat/example/persistence_intervals.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/Gudhi_stat/example/persistence_intervals.cpp b/src/Gudhi_stat/example/persistence_intervals.cpp index 6e2b0ddb..04a3d948 100644 --- a/src/Gudhi_stat/example/persistence_intervals.cpp +++ b/src/Gudhi_stat/example/persistence_intervals.cpp @@ -39,67 +39,67 @@ int main( int argc , char** argv ) { if ( argc != 2 ) { - cout << "To run this program, please provide the name of a file with persistence diagram \n"; + std::cout << "To run this program, please provide the name of a file with persistence diagram \n"; return 1; } Persistence_intervals p( argv[1] ); std::pair<double,double> min_max_ = p.min_max(); - cout << "Birth-death range : " << min_max_.first << " " << min_max_.second << endl; + std::cout << "Birth-death range : " << min_max_.first << " " << min_max_.second << std::endl; std::vector<double> dominant_ten_intervals_length = p.length_of_dominant_intervals(10); - cout << "Lendth of ten dominant intervals : " << endl; + std::cout << "Lendth of ten dominant intervals : " <<std::endl; for ( size_t i = 0 ; i != dominant_ten_intervals_length.size() ; ++i ) { - cout << dominant_ten_intervals_length[i] << endl; + std::cout << dominant_ten_intervals_length[i] <<std::endl; } std::vector< std::pair<double,double> > ten_dominant_intervals = p.dominant_intervals( 10 ); - cout << "Here are the dominant intervals : " << endl; + std::cout << "Here are the dominant intervals : " <<std::endl; for ( size_t i = 0 ; i != ten_dominant_intervals.size() ; ++i ) { - cout << "( " << ten_dominant_intervals[i].first<< "," << ten_dominant_intervals[i].second << endl; + std::cout << "( " << ten_dominant_intervals[i].first<< "," << ten_dominant_intervals[i].second <<std::endl; } std::vector< size_t > histogram = p.histograms_of_lengths( 10 ); - cout << "Here is the histogram of barcode's length : " << endl; + std::cout << "Here is the histogram of barcode's length : " <<std::endl; for ( size_t i = 0 ; i != histogram.size() ; ++i ) { - cout << histogram[i] << " "; + std::cout << histogram[i] << " "; } - cout << endl; + std::cout <<std::endl; std::vector< size_t > cumulative_histogram = p.cumulative_histograms_of_lengths( 10 ); - cout<< "Cumuative histogram : " << endl; + std::cout<< "Cumuative histogram : " <<std::endl; for ( size_t i = 0 ; i != cumulative_histogram.size() ; ++i ) { - cout << cumulative_histogram[i] << " "; + std::cout << cumulative_histogram[i] << " "; } - cout << endl; + std::cout <<std::endl; std::vector< double > char_funct_diag = p.characteristic_function_of_diagram( min_max_.first , min_max_.second ); - cout << "Characteristic function of diagram : " << endl; + std::cout << "Characteristic function of diagram : " <<std::endl; for ( size_t i = 0 ; i != char_funct_diag.size() ; ++i ) { - cout << char_funct_diag[i] << " "; + std::cout << char_funct_diag[i] << " "; } - cout << endl; + std::cout <<std::endl; std::vector< double > cumul_char_funct_diag = p.cumulative_characteristic_function_of_diagram( min_max_.first , min_max_.second ); - cout << "Cumulative characteristic function of diagram : " << endl; + std::cout << "Cumulative characteristic function of diagram : " <<std::endl; for ( size_t i = 0 ; i != cumul_char_funct_diag.size() ; ++i ) { - cout << cumul_char_funct_diag[i] << " "; + std::cout << cumul_char_funct_diag[i] << " "; } - cout << endl; + std::cout <<std::endl; - cout << "Persistence Betti numbers \n"; + std::cout << "Persistence Betti numbers \n"; std::vector< std::pair< double , size_t > > pbns = p.compute_persistent_betti_numbers(); for ( size_t i = 0 ; i != pbns.size() ; ++i ) { - cout << pbns[i].first << " " << pbns[i].second << endl; + std::cout << pbns[i].first << " " << pbns[i].second <<std::endl; } return 0; |