net.maizegenetics.analysis.chart.TableReportStatCategoryDataset Maven / Gradle / Ivy
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy