summaryrefslogtreecommitdiff
path: root/src/Witness_complex
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-04-01 08:21:06 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-04-01 08:21:06 +0000
commite6d3a9c57f80f65997183f4e08ecee31d4bcaae1 (patch)
tree2f1c4a24f184e478d91ed5a4860fc25cb1d002f1 /src/Witness_complex
parent8df595a525b21fdd49816f312411814b3b894c21 (diff)
Added landmark_strategy_by_random_points
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/witness@525 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: dcf5d32465313860e4666a8e81128077e2cde1a5
Diffstat (limited to 'src/Witness_complex')
-rw-r--r--src/Witness_complex/include/gudhi/Witness_complex.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Witness_complex/include/gudhi/Witness_complex.h b/src/Witness_complex/include/gudhi/Witness_complex.h
index 4b65e8a2..bcfe0f38 100644
--- a/src/Witness_complex/include/gudhi/Witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Witness_complex.h
@@ -219,7 +219,7 @@ namespace Gudhi {
void witness_complex_from_points(Point_Vector point_vector)
{
std::vector<std::vector< int > > WL;
- landmark_choice_by_furthest_points(point_vector, point_vector.size(), WL);
+ landmark_choice_by_random_points(point_vector, point_vector.size(), WL);
witness_complex(WL);
}
@@ -360,7 +360,7 @@ private:
//std::cout << "**********Entered loop with current number of landmarks = " << current_number_of_landmarks << std::endl;
//std::cout << "WL="; print_vvector(WL);
//std::cout << "WLD="; print_vvector(wit_land_dist);
- std::cout << "landmarks="; print_vector(chosen_landmarks); std::cout << std::endl;
+ //std::cout << "landmarks="; print_vector(chosen_landmarks); std::cout << std::endl;
for (auto v: WL)
v.push_back(current_number_of_landmarks);
for (int i = 0; i < nbP; ++i)
@@ -394,17 +394,16 @@ private:
//std::cout << "result distL="; print_vector(dist_to_L); std::cout << std::endl;
//std::cout << "End loop\n";
}
- std::cout << "Distance to landmarks="; print_vector(dist_to_L); std::cout << std::endl;
+ //std::cout << "Distance to landmarks="; print_vector(dist_to_L); std::cout << std::endl;
curr_max_dist = 0;
for (int i = 0; i < nbP; ++i) {
if (dist_to_L[i] > curr_max_dist)
{
curr_max_dist = dist_to_L[i];
curr_max_w = i;
- std::cout << "hop curr_max_w is now " << curr_max_w << std::endl;
}
}
- std::cout << "Chose " << curr_max_w << " as new landmark\n";
+ //std::cout << "Chose " << curr_max_w << " as new landmark\n";
}
//std::cout << endl;
}