1 | /* |
---|
2 | |
---|
3 | PHYML : a program that computes maximum likelihood phylogenies from |
---|
4 | DNA or AA homologous sequences |
---|
5 | |
---|
6 | Copyright (C) Stephane Guindon. Oct 2003 onward |
---|
7 | |
---|
8 | All parts of the source except where indicated are distributed under |
---|
9 | the GNU public licence. See http://www.opensource.org for details. |
---|
10 | |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef NJ_H |
---|
14 | #define NJ_H |
---|
15 | |
---|
16 | #include "utilities.h" |
---|
17 | #include "optimiz.h" |
---|
18 | /*#include "tools.h"*/ |
---|
19 | |
---|
20 | void Bionj(matrix *mat); |
---|
21 | void Finish(matrix *mat); |
---|
22 | void Bionj_Scores(matrix *mat); |
---|
23 | void Compute_Sx(matrix *mat); |
---|
24 | double Sum_S(matrix *mat, int i); |
---|
25 | double Dist(matrix *mat, int x, int y); |
---|
26 | double Q_Agglo(matrix *mat, int x, int y); |
---|
27 | double Variance(matrix *mat, int x, int y); |
---|
28 | double Br_Length(matrix *mat, int x, int y); |
---|
29 | void Update_Dist(matrix *mat, int x, int y); |
---|
30 | double Lamda(matrix *mat, int x, int y, double vxy); |
---|
31 | void Best_Pair(matrix *mat, int *x, int *y, double *score); |
---|
32 | double Var_Red(matrix *mat, int x, int y, int i, double lamda, double vxy); |
---|
33 | void Update_Tree(matrix *mat, int x, int y, double lx, double ly, double score); |
---|
34 | void Update_Mat(matrix *mat, int x, int y, |
---|
35 | double lx, double ly, double vxy, double lamda); |
---|
36 | double Dist_Red(matrix *mat, int x, double lx, int y, |
---|
37 | double ly, int i, double lamda); |
---|
38 | int Bionj_Br_Length_Post(node *a, node *d, matrix *mat); |
---|
39 | void Bionj_Br_Length(matrix *mat); |
---|
40 | |
---|
41 | #endif |
---|