net.maizegenetics.analysis.chart.TableReportStatCategoryDataset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel Show documentation
Show all versions of tassel Show documentation
TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage
disequilibrium.
The newest version!
package net.maizegenetics.analysis.chart;
import net.maizegenetics.util.TableReport;
import org.jfree.data.statistics.DefaultStatisticalCategoryDataset;
import java.util.ArrayList;
import java.util.Vector;
/**
* Title:
* Description: This will find the categories and estimate the mean and stdeviation for a Tablereport
* Copyright: Copyright (c) 2004
* Company:
* @author Ed Buckler
* @version 1.0
*/
public class TableReportStatCategoryDataset extends DefaultStatisticalCategoryDataset {
String[] seriesNames;
boolean useStderr=false;
public TableReportStatCategoryDataset(TableReport theTable, int seriesCategory, int[] seriesY) {
setTableReport(theTable, seriesCategory, seriesY);
}
public TableReportStatCategoryDataset(TableReport theTable, int seriesCategory, int[] seriesY, boolean stderr) {
this.useStderr=stderr;
setTableReport(theTable, seriesCategory, seriesY);
}
public boolean setTableReport(TableReport theTable, int seriesCategory, int[] seriesY) {
// int countGood = 0;
Vector theCategories = new Vector();
seriesNames = new String[seriesY.length];
Object[] theSN = theTable.getTableColumnNames();
for(int x=0; x