Skip to content
Snippets Groups Projects
Commit 30df8a22 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Make loosing features random

parent c25ebd87
No related branches found
No related tags found
1 merge request!157Kfpackmanager
...@@ -23,7 +23,8 @@ unsigned int ProcessorTrackerFeatureDummy::trackFeatures(const FeatureBaseList& ...@@ -23,7 +23,8 @@ unsigned int ProcessorTrackerFeatureDummy::trackFeatures(const FeatureBaseList&
auto features_lost = 0; auto features_lost = 0;
for (auto feat_in_ptr : _feature_list_in) for (auto feat_in_ptr : _feature_list_in)
{ {
if (features_lost < 2)
if ( rand() % static_cast<int>(101) < 30 )
{ {
features_lost++; features_lost++;
std::cout << "feature " << feat_in_ptr->id() << " lost!" << std::endl; std::cout << "feature " << feat_in_ptr->id() << " lost!" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment