[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|
HClustering | ![]() |
#include <vigra/random_forest/rf_algorithm.hxx>
Public Member Functions | |
| template<class Functor> | |
| void | breadth_first_traversal (Functor &tester) |
| template<class T, class C> | |
| void | cluster (MultiArrayView< 2, T, C > distance) |
| template<class Functor> | |
| void | iterate (Functor &tester) |
| void | save (std::string file, std::string prefix) |
Matrix<double> distance = get_distance_matrix();
linkage.cluster(distance);
// Draw clustering tree.
Draw<double, int> draw(features, labels, "linkagetree.graph");
linkage.breadth_first_traversal(draw);
| template<class Functor> | |||||
| void breadth_first_traversal | ( | Functor & | tester | ) | |
Perform breadth first traversal of hierarchical cluster tree
| template<class T, class C> | |||||
| void cluster | ( | MultiArrayView< 2, T, C > | distance | ) | |
Perform single linkage clustering
| distance | distance matrix used. |
| template<class Functor> | |||||
| void iterate | ( | Functor & | tester | ) | |
Visit each node with a Functor in creation order (should be depth first)
| void save | ( | std::string | file, | |
| std::string | prefix | |||
| ) |
save to HDF5 - defunct - has to be updated to new HDF5 interface
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|