#include "mattri.h"
Include dependency graph for clu.h:
Go to the source code of this file.
Compounds | |
struct | clu_ |
Clu_ : a cluster structure. More... | |
Typedefs | |
typedef struct clu_ | Clu_ |
Clu_ : a cluster structure. More... | |
Functions | |
Clu_* | make_clus (const Mattri_ *Dist, int *Cluno) |
make_clus(Dist, Cluno): performs the clustering. More... | |
void | free_clusters (Clu_ Clus[], int Cluno) |
free_clusters(Clus, Cluno): frees up the cluster "forest" (i.e. More... | |
void | print_clus (const Clu_ *Clu, FILE *Out) |
print_clus(Clu, Out): prints the whole cluster tree with root pointed to by Clu to Out. |
Definition in file clu.h.
|
Clu_ : a cluster structure. The things to be clustered are represented by integers running from 0 upwards. The clusters are organised into a binary tree; non-leaf nodes always have 2 sub-nodes. |
|
make_clus(Dist, Cluno): performs the clustering. The distances between the things to be clustered are in the Dist matrix: the [i][j]:th entry corresponds to the (non-negative) distance between the i and j. Only the lower triangle is used, i>=j. Self-distances are 0.0. Return value: a forest of Clus_ struct trees describing the clusters (allocated within). The no. of cluster trees is returned in *Cluno. Returns NULL on error. Referenced by clu_::Sed(). |
|
free_clusters(Clus, Cluno): frees up the cluster "forest" (i.e. the array of cluster trees generated by make_clus(...)). Referenced by clu_::Sed(). |
|
print_clus(Clu, Out): prints the whole cluster tree with root pointed to by Clu to Out.
Referenced by clu_::Sed(). |