-
Notifications
You must be signed in to change notification settings - Fork 1
/
bkgd_data.h
37 lines (21 loc) · 840 Bytes
/
bkgd_data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __BKGD_DATA_H__
#define __BKGD_DATA_H__
#include "util/config.h"
#include "bkgd_evo_mdl.h"
typedef struct {
int n_bin;
BkgdBin *bin;
} BkgdEvoMdlData;
void bkgd_data_combine_bin(BkgdEvoMdlData *data, size_t n_bin);
void bkgd_data_combine_cat_bin(BkgdEvoMdlData *data, double min_cat,
double max_cat);
void bkgd_data_collapse_nex_bin(BkgdEvoMdlData *data);
double bkgd_data_mean_cat_val(BkgdEvoMdlData *data);
long bkgd_data_n_bin_sites(const BkgdBin *bin);
long bkgd_data_n_sites(BkgdEvoMdlData *data);
BkgdEvoMdlData *bkgd_data_read_data(Config *config);
BkgdEvoMdlData *bkgd_data_read_i_v_data(Config *config);
void bkgd_data_write_site_counts(FILE *fh, BkgdEvoMdlData *data);
void bkgd_data_jukes_cantor_correct_cats(BkgdEvoMdlData *data);
void bkgd_data_set_mdiv_cats(BkgdEvoMdlData *data);
#endif