Documentation of 'hep.aida.ICloud1D' Java class
ICloud1D
hep.aida

Interface ICloud1D

    • Method Detail

      • fill

        void fill(double x)
           throws java.lang.IllegalArgumentException
        Fill the ICloud1D with a value and a corresponding weight. If either the value or the weight is NaN the entry will be recorded but it will not contribue to the statistics.
        Parameters:
        x - The value.
        Throws:
        java.lang.IllegalArgumentException - If the ICloud1D is full or if the weight's value is not between 0 and 1.
      • fill

        void fill(double x,
                  double weight)
           throws java.lang.IllegalArgumentException
        Fill the ICloud1D with a value and a corresponding weight. If either the value or the weight is NaN the entry will be recorded but it will not contribue to the statistics.
        Parameters:
        x - The value.
        weight - The corresponding weight. By default it is 1.
        Throws:
        java.lang.IllegalArgumentException - If the ICloud1D is full or if the weight's value is not between 0 and 1.
      • lowerEdge

        double lowerEdge()
        Get the lower edge of the ICloud1D.
        Returns:
        The lower edge.
      • upperEdge

        double upperEdge()
        Get the upper edge of the ICloud1D.
        Returns:
        The upper edge.
      • value

        double value(int index)
              throws AlreadyConvertedException
        Get the value corresponding to a given entry.
        Parameters:
        index - The entry's index.
        Returns:
        The value of the index-th entry.
        Throws:
        AlreadyConvertedException - If the ICloud1D has already been converted.
      • weight

        double weight(int index)
               throws AlreadyConvertedException
        Get the weight corresponding to a given entry.
        Parameters:
        index - The entry's index.
        Returns:
        The weight of the index-th entry.
        Throws:
        AlreadyConvertedException - If the ICloud has already been converted.
      • mean

        double mean()
        Get the mean of the ICloud1D.
        Returns:
        The mean.
      • rms

        double rms()
        Get the RMS of the ICloud1D.
        Returns:
        The RMS.
      • convert

        void convert(int nBins,
                     double lowerEdge,
                     double upperEdge)
              throws AlreadyConvertedException
        Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge.
        Parameters:
        nBins - The number of bins.
        lowerEdge - The lower edge.
        upperEdge - The upper edge.
        Throws:
        AlreadyConvertedException - If the ICloud1D has already been converted.
      • convert

        void convert(double[] binEdges)
              throws AlreadyConvertedException
        Convert internally the ICloud1D to an IHistogram1D with given bin edges.
        Parameters:
        binEdges - The bins edges.
        Throws:
        AlreadyConvertedException - If the ICloud1D has already been converted.
      • histogram

        IHistogram1D histogram()
                        throws java.lang.RuntimeException
        Get the internal IHistogram1D in which the ICloud1D converted to.
        Returns:
        The histogram.
        Throws:
        java.lang.RuntimeException - If the ICloud1D did not convert either automatically or because of a convert() method invocation.
      • fillHistogram

        void fillHistogram(IHistogram1D hist)
                    throws java.lang.RuntimeException
        Project the ICloud1D on an IHistogram1D.
        Parameters:
        hist - The IHistogram1D to be filled.
        Throws:
        java.lang.RuntimeException - If the ICloud1D is already converted.
      • setConversionParameters

        void setConversionParameters(int bins,
                                     double lowerEdge,
                                     double upperEdge)
                              throws java.lang.IllegalArgumentException
        Set the parameters for the ICloud conversion to an IHistogram.
        Parameters:
        bins - The number of bins of the conversion IHistogram.
        lowerEdge - The lower edge of the conversion IHistogram.
        upperEdge - The upper edge of the conversion IHistogram.
        Throws:
        java.lang.IllegalArgumentException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.