public class Partition extends Object
Constructor and Description |
---|
Partition(DataHolder data) |
Modifier and Type | Method and Description |
---|---|
DataHolder |
getCenters()
Get cluster centers
|
double |
getCompactness()
Get compactness of the cluster configurations
|
double[][] |
getMembership()
Get membeship of each pint inside the cluster.
|
String |
getName()
Get name for this clustering
|
int |
getNclusters()
get number of reconstructed clusters
|
int[] |
getPoints()
Get number of points accosiated with clusters
|
DataHolder |
getSeeds()
Get seeds
|
void |
run(int Imode)
Main method to run cluster algorithm
|
void |
set(int Nclusters,
double Eps,
double Fuzzines,
int Niterations)
Set parameters for clustering
|
void |
setProbab(double probability)
Set probability for cluster accosiation
|
public Partition(DataHolder data)
public void set(int Nclusters, double Eps, double Fuzzines, int Niterations)
Nclusters
- -
number of clustersEps
- -
precision of clusteringFuzzines
- -
fuzziness (only for cmeans algorithms, for others just dummy
constant)Niterations
- -
Max number of iterationspublic void run(int Imode)
Imode
- -
cluster mode (int). Find the correct mode from the example or
by running JMinHEP in GUI mode. After each clustering, Imode
value is shown in the status bar.public String getName()
public double getCompactness()
public DataHolder getCenters()
public DataHolder getSeeds()
public int[] getPoints()
public double[][] getMembership()
public void setProbab(double probability)
probability
- Active only for cmeans (and only for representative purpose)public int getNclusters()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics