package hep.aida.ref.plotter.adapter;

import hep.aida.IProfile1D;
import jas.hist.DataSource;
import jas.hist.HasStatistics;
import jas.hist.Rebinnable1DHistogramData;
import jas.hist.Statistics;

/**
 * @author manj
 * @version $Id: AIDAProfileAdapter1D.java 10740 2007-05-21 18:05:50Z serbo $
 */
public class AIDAProfileAdapter1D extends AIDAProfileAdapter implements Rebinnable1DHistogramData, HasStatistics
{
    AIDAProfileAdapter1D(IProfile1D profile)
   {
      super(profile);
      this.profile=profile;
      String tmp = null;
       try {
            tmp = profile.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)
   {
      setValid();
      double[][] data=new double[2][profile.axis().bins()];
      for(int i=0;i 

Ads help maintain this website.