diff options
Diffstat (limited to 'src/Gudhi_stat/utilities/persistence_intervals')
6 files changed, 6 insertions, 6 deletions
diff --git a/src/Gudhi_stat/utilities/persistence_intervals/compute_birth_death_range_in_persistence_diagram.cpp b/src/Gudhi_stat/utilities/persistence_intervals/compute_birth_death_range_in_persistence_diagram.cpp index 426a9b7b..a3e19400 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/compute_birth_death_range_in_persistence_diagram.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/compute_birth_death_range_in_persistence_diagram.cpp @@ -45,7 +45,7 @@ int main( int argc , char** argv ) int dim = atoi( argv[1] ); unsigned dimension = std::numeric_limits<unsigned>::max(); - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } diff --git a/src/Gudhi_stat/utilities/persistence_intervals/compute_bottleneck_distance.cpp b/src/Gudhi_stat/utilities/persistence_intervals/compute_bottleneck_distance.cpp index 6f0ba635..d8b533cf 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/compute_bottleneck_distance.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/compute_bottleneck_distance.cpp @@ -48,7 +48,7 @@ int main( int argc , char** argv ) int dim = atoi(argv[1]); unsigned dimension = std::numeric_limits<unsigned>::max(); - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } diff --git a/src/Gudhi_stat/utilities/persistence_intervals/compute_number_of_dominant_intervals.cpp b/src/Gudhi_stat/utilities/persistence_intervals/compute_number_of_dominant_intervals.cpp index 0a7f7c2b..281902fe 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/compute_number_of_dominant_intervals.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/compute_number_of_dominant_intervals.cpp @@ -43,7 +43,7 @@ int main( int argc , char** argv ) } int dim = atoi( argv[2] ); unsigned dimension = std::numeric_limits<unsigned>::max(); - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } diff --git a/src/Gudhi_stat/utilities/persistence_intervals/plot_histogram_of_intervals_lengths.cpp b/src/Gudhi_stat/utilities/persistence_intervals/plot_histogram_of_intervals_lengths.cpp index 11876a0d..acfb0eed 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/plot_histogram_of_intervals_lengths.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/plot_histogram_of_intervals_lengths.cpp @@ -48,7 +48,7 @@ int main( int argc , char** argv ) { dim = atoi( argv[2] ); } - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } diff --git a/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_Betti_numbers.cpp b/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_Betti_numbers.cpp index 09c6cc22..21ba06f4 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_Betti_numbers.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_Betti_numbers.cpp @@ -48,7 +48,7 @@ int main( int argc , char** argv ) { dim = atoi( argv[2] ); } - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } diff --git a/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_intervals.cpp b/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_intervals.cpp index 4315abb9..95c0cf1f 100644 --- a/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_intervals.cpp +++ b/src/Gudhi_stat/utilities/persistence_intervals/plot_persistence_intervals.cpp @@ -51,7 +51,7 @@ int main( int argc , char** argv ) { dim = atoi( argv[2] ); } - if ( (dim != -1) && (dim >= 0) ) + if ( dim >= 0 ) { dimension = (unsigned)dim; } |