Legofit
infers population history from nucleotide site patterns.
setpart.h
1
#ifndef ARR_SETPART_H
2
#define ARR_SETPART_H
3
4
#include "typedefs.h"
5
#include <stdio.h>
6
#include <stdint.h>
7
8
uint64_t stirling2(uint32_t n, uint32_t k);
9
void
stirling2_free(
void
);
10
long
double
lnCoalConst(
unsigned
n,
unsigned
k);
11
double
probPartition(
unsigned
k,
unsigned
y[k],
long
double
lnconst);
12
13
int
traverseSetPartitions(
unsigned
nelements,
unsigned
nparts,
14
int
(*visit)(
unsigned
n,
unsigned
a[n],
15
void
*data),
void
*data);
16
17
#endif
Generated on Fri Mar 17 2023 17:45:47 for Legofit by
1.9.4