Legofit
infers population history from nucleotide site patterns.
Data Structures | Macros | Functions
network.c File Reference

Models a network of populations. More...

#include "branchtab.h"
#include "gptree.h"
#include "mctree.h"
#include "popnode.h"
#include "segment.h"
#include <gsl/gsl_rng.h>
#include "network.h"

Data Structures

struct  Network
 

Functions

void Network_init (enum NetworkType type)
 Initialize model of network.
 
void Network_patprob (void *self, BranchTab *branchtab, gsl_rng *rng, unsigned long nreps, int doSing, long unsigned *event_counter)
 

Detailed Description

Models a network of populations.

Author
Alan R. Rogers

Legofit supports two models of the network of populations. One of these (PopNode and GPTree) calculate probabilities by coalescent simulation. The other (Segment and MCTree) does the same calculation via a deterministic algorithm. This file implements a generic interface to these two models.