DataPointSet
hep.aida.ref.histogram

Class DataPointSet

    • Constructor Detail

      • DataPointSet

        public DataPointSet(String name,            String title,            int dimOfPoints)
      • DataPointSet

        public DataPointSet(String name,            String title,            int dimOfPoints,            int defaultCapacity)
      • DataPointSet

        public DataPointSet(String name,            String title,            int dimOfPoints,            String options)
      • DataPointSet

        public DataPointSet(String name,            String title,            int dimOfPoints,            int defaultCapacity,            String options)
    • Method Detail

      • setAnnotation

        public void setAnnotation(IAnnotation annotation)
      • dimension

        public int dimension()
        Description copied from interface: IDataPointSet
        Get the dimension of the IDataPoints that can be stored in the set.
        Specified by:
        dimension in interface IDataPointSet
        Returns:
        The dimension of the IDataPoints storable in the set.
      • clear

        public void clear()
        Description copied from interface: IDataPointSet
        Remove all the IDataPoints in the set. After this the IDataPointSet is as just created.
        Specified by:
        clear in interface IDataPointSet
      • size

        public int size()
        Description copied from interface: IDataPointSet
        Get the current size of the IDataPointSet, i.e. the number of IDataPoints contained in the set.
        Specified by:
        size in interface IDataPointSet
        Returns:
        The size of the IDataPointSet.
      • point

        public IDataPoint point(int index)
        Description copied from interface: IDataPointSet
        Get the IDataPoint at a give index in the set.
        Specified by:
        point in interface IDataPointSet
        Parameters:
        index - The IDataPoint index.
        Returns:
        The corresponding IDataPoint.
      • setPoint

        public void setPoint(int index,            IDataPoint point)              throws IllegalArgumentException
        Set the IDataPoint at a give index in the set. This method is not in the IDataSet interface and is here for efficiency reasons
        Parameters:
        index - The IDataPoint index.
        point - The corresponding IDataPoint to be set at the index
        Throws:
        IllegalArgumentException - If the index is < 0 or >= size().
      • setCoordinate

        public void setCoordinate(int coord,                 double[] values,                 double[] errors)                   throws IllegalArgumentException
        Description copied from interface: IDataPointSet
        Set the values and errors of a given coordinate all at once. If this method is called on an empty IDataPointSet, a number of points equal to the size of the arrays provided is created; if the IDataPointSet is not empty the dimension of the array must match with the size of the IDataPointSet.
        Specified by:
        setCoordinate in interface IDataPointSet
        Parameters:
        coord - The coordinate's index
        values - The array of the values for the given coordinate
        errors - The array with the symmetric errors.
        Throws:
        IllegalArgumentException - if an illegal coordinate is provided or if there is a mismatch between the size of the array and the size of the IDataPointSet.
      • setCoordinate

        public void setCoordinate(int coord,                 double[] values,                 double[] errp,                 double[] errm)                   throws IllegalArgumentException
        Description copied from interface: IDataPointSet
        Set the values and errors of a given coordinate all at once. If this method is called on an empty IDataPointSet, a number of points equal to the size of the arrays provided is created; if the IDataPointSet is not empty the dimension of the array must match with the size of the IDataPointSet.
        Specified by:
        setCoordinate in interface IDataPointSet
        Parameters:
        coord - The coordinate's index
        values - The array of the values for the given coordinate
        errp - The array with the plus errors.
        errm - The array with the minus errors.
        Throws:
        IllegalArgumentException - if an illegal coordinate is provided or if there is a mismatch between the size of the array and the size of the IDataPointSet.

SCaVis 1.8 © jWork.org