[Jtreeview-users] dendrogram with treeview
Brought to you by:
alokito
|
From: fine c. <fi...@ya...> - 2008-05-12 21:36:23
|
Hi, I am trying to use Treeview to generate dendrogram. I have my own "draw" function written alreay in Adobe Flash. So I do not need a java JPanel or other GUI program. I just need to use TreeView to compute the clusters from original data and output a descriptive result something like the file bellow. Could anyone tell me how to do it?
--[dendrogram w/ 2 branches and 20 members at h = 10.1]
|--[dendrogram w/ 2 branches and 5 members at h = 3.69]
| |--leaf "17"
| `--[dendrogram w/ 2 branches and 4 members at h = 2.13]
| |--leaf "9"
| `--[dendrogram w/ 2 branches and 3 members at h = 0.352]
| |--leaf "20"
| `--[dendrogram w/ 2 branches and 2 members at h = 0.143]
| |--leaf "18"
| `--leaf "19"
`--[dendrogram w/ 2 branches and 15 members at h = 6.16]
|--leaf "6"
`--[dendrogram w/ 2 branches and 14 members at h = 3.05]
|--[dendrogram w/ 2 branches and 7 members at h = 0.82]
| |--leaf "14"
| `--[dendrogram w/ 2 branches and 6 members at h = 0.356]
| |--[dendrogram w/ 2 branches and 3 members at h = 0.128]
| | |--leaf "15"
| | `--[dendrogram w/ 2 branches and 2 members at h = 0.110]
| | |--leaf "11"
| | `--leaf "12"
| `--[dendrogram w/ 2 branches and 3 members at h = 0.217]
| |--leaf "13"
| `--[dendrogram w/ 2 branches and 2 members at h = 0.117]
| |--leaf "10"
| `--leaf "16"
`--[dendrogram w/ 2 branches and 7 members at h = 1.7]
|--[dendrogram w/ 2 branches and 5 members at h = 0.539]
| |--leaf "7"
| `--[dendrogram w/ 2 branches and 4 members at h = 0.223]
| |--leaf "8"
| `--[dendrogram w/ 2 branches and 3 members at h = 0.183]
| |--leaf "4"
| `--[dendrogram w/ 2 branches and 2 members at h = 0.107]
| |--leaf "2"
| `--leaf "3"
`--[dendrogram w/ 2 branches and 2 members at h = 0.698]
|--leaf "1"
`--leaf "5"
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |