Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

clu.h File Reference

Simple hierarchical clustering. More...

#include "mattri.h"

Include dependency graph for clu.h:

Include dependency graph

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.


Detailed Description

Simple hierarchical clustering.

Definition in file clu.h.


Typedef Documentation

typedef struct clu_ Clu_
 

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.


Function Documentation

Clu_ * make_clus ( const Mattri_ * Dist,
int * Cluno )
 

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().

void free_clusters ( Clu_ Clus[],
int Cluno )
 

free_clusters(Clus, Cluno): frees up the cluster "forest" (i.e.

the array of cluster trees generated by make_clus(...)).

Referenced by clu_::Sed().

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.

Referenced by clu_::Sed().


Generated at Wed Aug 21 09:33:29 2002 for The Razorback C Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001