[shark] 42/58: typo in comment

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 16 10:05:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository shark.

commit 9a366ddabffde75dbdca193593e0a9abe19e3e7b
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date:   Wed Feb 10 09:00:33 2016 +0100

    typo in comment
---
 .../DirectSearch/Operators/Selection/IndicatorBasedSelection.h         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/shark/Algorithms/DirectSearch/Operators/Selection/IndicatorBasedSelection.h b/include/shark/Algorithms/DirectSearch/Operators/Selection/IndicatorBasedSelection.h
index 44244ee..a949632 100644
--- a/include/shark/Algorithms/DirectSearch/Operators/Selection/IndicatorBasedSelection.h
+++ b/include/shark/Algorithms/DirectSearch/Operators/Selection/IndicatorBasedSelection.h
@@ -123,7 +123,7 @@ struct IndicatorBasedSelection {
 			population[i].selected() = true;
 		}
 
-		//deselect the highest rank fronts until we would end up with less than mu elements
+		//deselect the highest rank fronts until we would end up with less or equal mu elements
 		unsigned int rank = maxRank;
 		std::size_t popSize = population.size();
 		
@@ -136,7 +136,6 @@ struct IndicatorBasedSelection {
 			popSize -= front.size();
 			--rank;
 		}
-		
 		//now use the indicator to deselect the worst approximating elements of the last selected front
 		m_indicator.updateInternals(FitnessExtractor(),population);
 		View& front = fronts[rank];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list