DataPoint
hep.aida.ref.histogram

Class DataPoint

    • Constructor Detail

      • DataPoint

        public DataPoint(int dim)
      • DataPoint

        public DataPoint(double[] val)
      • DataPoint

        public DataPoint(double[] val,         double[] err)
      • DataPoint

        public DataPoint(double[] val,         double[] errMinus,         double[] errPlus)
    • Method Detail

      • dimension

        public int dimension()
        Description copied from interface: IDataPoint
        Get the dimension of the IDataPoint, i.e. the number of coordinates the point has.
        Specified by:
        dimension in interface IDataPoint
        Returns:
        The dimension.
      • coordinate

        public IMeasurement coordinate(int coord)
        Description copied from interface: IDataPoint
        Get the IMeasurement for a given coordinate.
        Specified by:
        coordinate in interface IDataPoint
        Parameters:
        coord - The coordinate.
        Returns:
        The corresponding IMeasurement.
      • lowerExtent

        public double lowerExtent(int coord)                   throws IllegalArgumentException
        Get the lower value for a give axis. This method is not in the IDataPoint interface and is here for efficiency reasons
        Parameters:
        coord - The coordinate of the axis.
        Returns:
        The lower edge of the corresponding axis.
        Throws:
        IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.
      • upperExtent

        public double upperExtent(int coord)                   throws IllegalArgumentException
        Get the upper value for a give axis. This method is not in the IDataPoint interface and is here for efficiency reasons
        Parameters:
        coord - The coordinate of the axis.
        Returns:
        The upper edge of the corresponding axis.
        Throws:
        IllegalArgumentException - if coord < 0 or coord >= dimension() or if the set is empty.
      • clear

        public void clear()

SCaVis 2.0 © jWork.ORG