trsl logo

Version History

Version 0.2.2

  • Changed "double quotes" include directives to use angle brackets instead.
  • For systematic sampling, trsl::ppfilter_iterator should be used by default, and trsl::persistent_filter_iterator should be used only when it is guaranteed that the order in which the input population is presented is not following any pattern. To encourage this policy, trsl::persistent_filter_iterator has been replace by trsl::ppfilter_iterator in the following examples: examples/trsl_example1.cpp, examples/trsl_example1plus.cpp, examples/ParticleCollection.cpp. Naturally, std::list had to be replaced with std::vector in examples/trsl_example1.cpp.
  • Enhanced documentation.

Version 0.2.1

Version 0.2.0

  • trsl::random_permutation_iterator uses a partial shuffle algorithm instead of std::random_shuffle. It is thus efficient to iterate over a permutation of a subset that is much smaller than the population.

Version 0.1.1

Changes made to the code are:

  • trsl::random_permutation_iterator::random_permutation_iterator(ElementIterator,ElementIterator,index_t) now checks that the permutation size is smaller or equal to the population size, and throws an exception if it is not the case.

This release also features many documentation fixes (corrections, rephrasing and additions).

Version 0.1.0

Begins with trsl::is_picked_systematic, trsl::persistent_filter_iterator, trsl::random_permutation_iterator.

© Copyright 2007-2011 Renaud Detry.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
Revised Wed Apr 6 16:30:07 2011. Logo