summaryrefslogtreecommitdiff
path: root/src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp
diff options
context:
space:
mode:
authorpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-31 14:38:15 +0000
committerpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-31 14:38:15 +0000
commit5084fc612a5f8ed47a80771785e5c26ee4e42d94 (patch)
treed67f0a36ab6fd210d5ac45492664216c0ba9c543 /src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp
parent318c309206f1cffcc17c9333bb6ac9e2f90b7610 (diff)
Answer to Vincent's email.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@2295 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 81231c61a677939c03552b26ae065dfff970b759
Diffstat (limited to 'src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp')
-rw-r--r--src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp b/src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp
index 5556a8ee..5c3be0cc 100644
--- a/src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp
+++ b/src/Gudhi_stat/utilities/Hausdorff_subsampling.cpp
@@ -71,17 +71,12 @@ int main( int argc , char** argv )
points.push_back( point2 );
points.push_back( point3 );
points.push_back( point4 );
-
-
- std::vector< std::vector<double> > all_to_all_distance_matrix_between_points = compute_all_to_all_distance_matrix_between_points< std::vector<double> , Euclidean_distance<double> >( points );
- Hausdorff_distance_between_subspace_and_the_whole_metric_space distance( all_to_all_distance_matrix_between_points );
-
- std::vector<size_t> characteristic_of_all_points = {0,1,2,3};
- std::vector<size_t> characteristic_of_subsampled_points = {2,3};
- std::cerr << "DISTANCE BETWEEN SAMPLE AND SUBSAMPLE: " << distance( characteristic_of_subsampled_points , characteristic_of_all_points ) << std::endl;
+ size_of_subsample = 2;
*/
-
-
+// std::vector< std::vector<double> > all_to_all_distance_matrix_between_points = compute_all_to_all_distance_matrix_between_points< std::vector<double> , Euclidean_distance<double> >( points );
+// Hausdorff_distance_between_subspace_and_the_whole_metric_space distance( all_to_all_distance_matrix_between_points );
+
+
std::cout << "Read : " << points.size() << " points.\n";
//comute all-to-all distance matrix:
@@ -89,6 +84,9 @@ int main( int argc , char** argv )
Hausdorff_distance_between_subspace_and_the_whole_metric_space distance( all_to_all_distance_matrix_between_points );
identity< std::vector<size_t> > identity_char;
+// std::vector<size_t> characteristic_of_all_points = {0,1,2,3};
+// std::vector<size_t> characteristic_of_subsampled_points = {2,3};
+// std::cerr << "DISTANCE BETWEEN SAMPLE AND SUBSAMPLE: " << distance( characteristic_of_subsampled_points , characteristic_of_all_points ) << std::endl;
@@ -107,7 +105,7 @@ int main( int argc , char** argv )
>
( points.size() , identity_char , distance , number_of_repetitions_of_subsampling , size_of_subsample , quantile );
- std::cout << "result of the subsampling : " << result << std::endl;
+ std::cout << "result of the subsampling : " << 2*result << std::endl;
return 0;