Search in sources :

Example 1 with HistogramDialog

use of edu.ucsf.rbvi.clusterMaker2.internal.ui.HistogramDialog 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);
}
Also used : ThresholdHeuristic(edu.ucsf.rbvi.clusterMaker2.internal.algorithms.edgeConverters.ThresholdHeuristic) HistogramDialog(edu.ucsf.rbvi.clusterMaker2.internal.ui.HistogramDialog)

Aggregations

ThresholdHeuristic (edu.ucsf.rbvi.clusterMaker2.internal.algorithms.edgeConverters.ThresholdHeuristic)1 HistogramDialog (edu.ucsf.rbvi.clusterMaker2.internal.ui.HistogramDialog)1