14 for (
auto it = p->begin(); it != p->end(); ) {
15 if ((*it)->is(
blue) && unif_rand() > frac) {
35 SET_ATTR(
S,install(
"class"),mkString(
"gpgen"));
Balls function as pointers.
genealogy_t & prune(void)
prune the tree (drop all black balls)
genealogy_t & subsample(double frac)
Encodes a genealogical node.
SEXP serial(const TYPE &X)
binary serialization
SEXP subsample(SEXP State, SEXP Frac)
extract the bare genealogy