phylopomp
Phylodynamics for POMPs
Loading...
Searching...
No Matches
gendat.cc File Reference
#include "genealogy.h"
#include "internal.h"
Include dependency graph for gendat.cc:

Go to the source code of this file.

Functions

SEXP gendat (SEXP State, SEXP Obscure)
 data-frame format
 

Function Documentation

◆ gendat()

SEXP gendat ( SEXP State,
SEXP Obscure )

data-frame format

Definition at line 104 of file gendat.cc.

104 {
105 genealogy_t A = State;
106 A.prune();
107 if (*LOGICAL(Obscure)) A.obscure();
108 A.trace_lineages();
109 return A.gendat();
110 }
Encodes a genealogy.
Definition genealogy.h:19
genealogy_t & prune(void)
prune the tree (drop all black balls)
Definition genealogy.h:310
void gendat(double *tout, int *anc, int *lin, int *sat, int *type, int *deme, int *index, int *child) const
genealogy information in list format
Definition gendat.cc:9
genealogy_t & obscure(void)
erase all deme information
Definition genealogy.h:321
void trace_lineages(void)
Definition nodeseq.h:253
Here is the call graph for this function:
Here is the caller graph for this function: