package hep.aida.ref.plotter.adapter;
import hep.aida.IHistogram2D;
import jas.hist.DataSource;
import jas.hist.HasStatistics;
import jas.hist.Rebinnable2DHistogramData;
import jas.hist.Statistics;
/**
*
* @author manj
* @version $Id: AIDAHistogramAdapter2D.java 10738 2007-05-16 22:47:34Z serbo $
*/
public class AIDAHistogramAdapter2D extends AIDAHistogramAdapter implements Rebinnable2DHistogramData, HasStatistics
{
AIDAHistogramAdapter2D(IHistogram2D histo)
{
super(histo);
this.h2d=histo;
String tmp = null;
try {
tmp = h2d.annotation().value("xAxisType");
if (tmp != null && tmp.equalsIgnoreCase("date")) xAxisType = DataSource.DATE;
} catch (IllegalArgumentException e) {}
try {
tmp = h2d.annotation().value("yAxisType");
if (tmp != null && tmp.equalsIgnoreCase("date")) xAxisType = DataSource.DATE;
} catch (IllegalArgumentException e) {}
}
public double[][][] rebin(int xbins, double xmin, double xmax,
int ybins, double ymin, double ymax,
boolean wantErrors, boolean hurry, boolean overflow)
{
double[][][] data=new double [2][h2d.xAxis().bins()][h2d.yAxis().bins()];
for(int i=0;i
Ads help maintain this website.