use of edu.ucsf.rbvi.clusterMaker2.internal.algorithms.edgeConverters.ThresholdHeuristic in project clusterMaker2 by RBVI.
the class EdgeAttributeHandler method createHistogramDialog.
public void createHistogramDialog() {
if (this.matrix == null)
getMatrix();
ThresholdHeuristic thueristic = new ThresholdHeuristic(matrix);
// TODO: There really needs to be a better way to calculate the number of bins
int nbins = 100;
if (matrix.nRows() * matrix.nColumns() < 100)
nbins = 10;
// else if (dataArray.length > 10000)
// nbins = 1000;
String title = "Histogram for " + attribute.getSelectedValue() + " edge attribute";
histo = new HistogramDialog(helper.getParent(), title, matrix, nbins, thueristic);
histo.pack();
histo.setVisible(true);
histo.addHistoChangeListener(this);
}
Aggregations