 |
Perform a cluster analysis using jMinHEP GUI
Source code name: "clustering_gui.py"
Programming language: Python
Topic: Data mining/clustering
DMelt Version 1. Last modified: 12/08/2015. License: Pro
https://datamelt.org/code/cache/clustering_gui_5029.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from java.util import Random
from jminhep.cluster import *
from jhplot import *
# create data for analysis
data = DataHolder("Example")
# fill 3D data with Gaussian random numbers
rand = Random()
for i in range(100):
a =[]
a.append( 10*rand.nextGaussian() )
a.append( 2*rand.nextGaussian()+1 )
a.append( 10*rand.nextGaussian()+3 )
data.add( DataPoint(a) )
# start jMinHEP GUI
c1=HCluster(data)
You see the box below because you did not login.