package hep.aida.ref.plotter.adapter;
import hep.aida.IHistogram1D;
import jas.hist.DataSource;
import jas.hist.HasStatistics;
import jas.hist.Rebinnable1DHistogramData;
import jas.hist.Statistics;
/**
* @author manj
* @version $Id: AIDAHistogramAdapter1D.java 10734 2007-05-16 19:31:00Z serbo $
*/
public class AIDAHistogramAdapter1D extends AIDAHistogramAdapter implements Rebinnable1DHistogramData, HasStatistics
{
AIDAHistogramAdapter1D(IHistogram1D histo)
{
super(histo);
this.h1d=histo;
String tmp = null;
try {
tmp = histo.annotation().value("xAxisType");
if (tmp != null && tmp.equalsIgnoreCase("date")) xAxisType = DataSource.DATE;
} catch (IllegalArgumentException e) {}
}
public double[][] rebin(int bins, double min, double max, boolean wantErrors, boolean hurry)
{
double[][] data=new double[2][h1d.axis().bins()];
for(int i=0;i
Ads help maintain this website.