- 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.
- 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.
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).
Begins with trsl::is_picked_systematic, trsl::persistent_filter_iterator, trsl::random_permutation_iterator.