summaryrefslogtreecommitdiff
path: root/src/Gudhi_stat/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gudhi_stat/utilities')
-rw-r--r--src/Gudhi_stat/utilities/CMakeLists.txt9
-rw-r--r--src/Gudhi_stat/utilities/Multiplicative_bootstrap.cpp5
2 files changed, 12 insertions, 2 deletions
diff --git a/src/Gudhi_stat/utilities/CMakeLists.txt b/src/Gudhi_stat/utilities/CMakeLists.txt
index a26aa5c5..01387869 100644
--- a/src/Gudhi_stat/utilities/CMakeLists.txt
+++ b/src/Gudhi_stat/utilities/CMakeLists.txt
@@ -130,3 +130,12 @@ target_link_libraries(Multiplicative_bootstrap ${TBB_LIBRARIES})
endif(TBB_FOUND)
target_link_libraries(Multiplicative_bootstrap ${Boost_SYSTEM_LIBRARY})
+
+
+
+#just for Pawel's tests:
+add_executable ( NN_classification NN_classification.cpp )
+target_link_libraries(NN_classification ${Boost_SYSTEM_LIBRARY})
+
+add_executable ( compute_distance_between_vectors compute_distance_between_vectors.cpp )
+target_link_libraries(compute_distance_between_vectors ${Boost_SYSTEM_LIBRARY})
diff --git a/src/Gudhi_stat/utilities/Multiplicative_bootstrap.cpp b/src/Gudhi_stat/utilities/Multiplicative_bootstrap.cpp
index 489ad909..d968b460 100644
--- a/src/Gudhi_stat/utilities/Multiplicative_bootstrap.cpp
+++ b/src/Gudhi_stat/utilities/Multiplicative_bootstrap.cpp
@@ -35,7 +35,7 @@ using namespace Gudhi::Gudhi_stat;
int main( int argc , char** argv )
{
std::cout << "The parameters of this program are : " << std::endl;
- std::cout << "(a) a name of a file with names of files with points," << std:: endl;
+ std::cout << "(a) a name of a file with names of files with persistence diagrams," << std:: endl;
std::cout << "(b) a number of repetitions of bootstrap (integer)," << std::endl;
std::cout << "(c) a quantile (real number between 0 and 1. If you do not know what to set, set it to 0.95." << std::endl;
if ( argc != 4 )
@@ -61,7 +61,8 @@ int main( int argc , char** argv )
norm_of_objects<Persistence_landscape> norm;
double result =
- multiplicative_bootstrap< Persistence_landscape , difference_of_objects<Persistence_landscape> , norm_of_objects<Persistence_landscape> >( collection_of_landscapes , number_of_repetitions_of_bootstrap , diff , norm , quantile );
+ multiplicative_bootstrap< Persistence_landscape , difference_of_objects<Persistence_landscape> , norm_of_objects<Persistence_landscape> >
+ ( collection_of_landscapes , number_of_repetitions_of_bootstrap , diff , norm , quantile );
std::cout << "result of bootstrap : " << result << std::endl;
return 0;