#include <assert.h>
#include "log.h"
#include "muscle_tree.h"
#include "weights.h"
Functions | |
uint | CountLeaves (uint *puLeavesUnderNode, tree_t *prTree, uint uNodeIndex) |
FIXME. | |
void | Normalise (double *p, uint n) |
Normalise values in a double array to values between 0 and 1. | |
int | CalcClustalWeights (double **pdWeights_p, tree_t *prTree) |
Calculate "Clustal" weights from a tree. |
int CalcClustalWeights | ( | double ** | pdWeights_p, | |
tree_t * | prTree | |||
) |
Calculate "Clustal" weights from a tree.
FIXME see doc in muscle:clwwt.cpp
[out] | pdWeights_p | Will contain a weight for each leaf/sequence. Allocated here. User has to free |
[in] | prTree | Tree to derive weights from |
FIXME.
[out] | puLeavesUnderNode | FIXME |
[in] | prTree | FIXME |
[in] | uNodeIndex | FIXME |
void Normalise | ( | double * | p, | |
uint | n | |||
) |
Normalise values in a double array to values between 0 and 1.
[out] | p | double array with n elements |
[in] | n | number of elements in p |