public class Dendrogram extends Plot
Constructor and Description |
---|
Dendrogram(int[][] merge,
double[] height)
Constructor.
|
Dendrogram(int[][] merge,
double[] height,
java.awt.Color color)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Returns the height of tree.
|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(int[][] merge,
double[] height)
Create a dendrogram plot.
|
static PlotCanvas |
plot(java.lang.String id,
int[][] merge,
double[] height)
Create a dendrogram plot.
|
getID, getToolBar, getToolTip, setID
public Dendrogram(int[][] merge, double[] height)
merge
- an n-1 by 2 matrix of which row i describes the merging of clusters at
step i of the clustering. If an element j in the row is less than n, then
observation j was merged at this stage. If j ≥ n then the merge
was with the cluster formed at the (earlier) stage j-n of the algorithm.height
- a set of n-1 non-decreasing real values, which are the clustering height,
i.e., the value of the criterion associated with the clustering method
for the particular agglomeration.public Dendrogram(int[][] merge, double[] height, java.awt.Color color)
merge
- an n-1 by 2 matrix of which row i describes the merging of clusters at
step i of the clustering. If an element j in the row is less than n, then
observation j was merged at this stage. If j ≥ n then the merge
was with the cluster formed at the (earlier) stage j-n of the algorithm.height
- a set of n-1 non-decreasing real values, which are the clustering height,
i.e., the value of the criterion associated with the clustering method
for the particular agglomeration.color
- the color for rendering the plot.public double getHeight()
public void paint(Graphics g)
Shape
public static PlotCanvas plot(int[][] merge, double[] height)
merge
- an n-1 by 2 matrix of which row i describes the merging of clusters at
step i of the clustering. If an element j in the row is less than n, then
observation j was merged at this stage. If j ≥ n then the merge
was with the cluster formed at the (earlier) stage j-n of the algorithm.height
- a set of n-1 non-decreasing real values, which are the clustering height,
i.e., the value of the criterion associated with the clustering method
for the particular agglomeration.public static PlotCanvas plot(java.lang.String id, int[][] merge, double[] height)
id
- the id of the plot.merge
- an n-1 by 2 matrix of which row i describes the merging of clusters at
step i of the clustering. If an element j in the row is less than n, then
observation j was merged at this stage. If j ≥ n then the merge
was with the cluster formed at the (earlier) stage j-n of the algorithm.height
- a set of n-1 non-decreasing real values, which are the clustering height,
i.e., the value of the criterion associated with the clustering method
for the particular agglomeration.