summaryrefslogtreecommitdiff
path: root/src/Gudhi_stat/utilities/Landscape_bootstrap.cpp
diff options
context:
space:
mode:
authorpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-11-14 14:37:06 +0000
committerpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-11-14 14:37:06 +0000
commitd29709e9ab62873e6f2795fb6025ebd3b388a78d (patch)
treef5d1142e7d1a5df61d0b288cd4aabaa1e73063d5 /src/Gudhi_stat/utilities/Landscape_bootstrap.cpp
parent6daf7a4c27cc4e62b8e20ad5f5872716cc938fe9 (diff)
A few minor crrections to bootstrap procedures.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@1753 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: afcd32a0ac4292b8369ffdda6afb71cbd3a5b97a
Diffstat (limited to 'src/Gudhi_stat/utilities/Landscape_bootstrap.cpp')
-rw-r--r--src/Gudhi_stat/utilities/Landscape_bootstrap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Gudhi_stat/utilities/Landscape_bootstrap.cpp b/src/Gudhi_stat/utilities/Landscape_bootstrap.cpp
index b1364c0c..e9e39e50 100644
--- a/src/Gudhi_stat/utilities/Landscape_bootstrap.cpp
+++ b/src/Gudhi_stat/utilities/Landscape_bootstrap.cpp
@@ -143,7 +143,8 @@ int main( int argc , char** argv )
std::cout << "(4) An real value p such that L^p distance is going to be computed. \n";
std::cout << "(5) A dimension of persistence that is to be taken into account (positive integer) \n";
std::cout << "(6) A maximal diameter to which complex is to be grown (positive integer) \n";
- if ( argc != 7 )
+ std::cout << "(d) a squantile (real number between 0 and 1. If you do not know what to set, set it to 0.95." << std::endl;
+ if ( argc != 8 )
{
std::cerr << "Wrong number of parameters, the program will now terminate.\n";
return 1;
@@ -155,6 +156,7 @@ int main( int argc , char** argv )
double p = atoi( argv[4] );
int dimension = atoi( argv[5] );
double threshold = atof( argv[6] );
+ double quantile = atof( argv[7] );
std::cout << "Now we will read points from the file : " << filename << " and then perform " << number_of_repetitions_of_bootstrap << " times the bootstrap on it by choosing subsample of a size " << size_of_subsample << std::endl;
@@ -178,7 +180,7 @@ int main( int argc , char** argv )
compute_persistence_landscape_of_a_point_cloud_in_certain_dimension , //CharacteristicFunction, in this case, we will need to compute persistence in a certain dimension.
distance_between_landscapes //DistanceBetweenPointsCharacteristics. In this case
>
- ( points.size() , characteristic_fun , distance , number_of_repetitions_of_bootstrap , size_of_subsample );
+ ( points.size() , characteristic_fun , distance , number_of_repetitions_of_bootstrap , size_of_subsample , quantile );
std::cout << "result of bootstrap : " << result << std::endl;