mparisons and track allele frequencies.</p>
<p><br />
</p><h3>Writing your own Preserving and Sampling Functions</h3>
<p>These can be functions or functors (or soon, with C++11 support, lambdas). However, the preserving/sampling function must be of the form:</p>
<div class="fragment"><div class="line"><span class="keywordtype">bool</span> your_function(<span class="keywordtype">int</span> generation){ ... <span class="keywordflow">return</span> <span class="keyword">true</span>/<span class="keyword">false</