Class BreitWigner

    • Field Detail

      • mean

        protected double mean
      • gamma

        protected double gamma
      • cut

        protected double cut
    • Constructor Detail

      • BreitWigner

        public BreitWigner​(double mean,
                           double gamma,
                           double cut,
                           RandomEngine randomGenerator)
        Constructs a BreitWigner distribution.
        Parameters:
        cut - cut==Double.NEGATIVE_INFINITY indicates "don't cut".
    • Method Detail

      • nextDouble

        public double nextDouble​(double mean,
                                 double gamma,
                                 double cut)
        Returns a random number from the distribution; bypasses the internal state.
        Parameters:
        cut - cut==Double.NEGATIVE_INFINITY indicates "don't cut".
      • setState

        public void setState​(double mean,
                             double gamma,
                             double cut)
        Sets the mean, gamma and cut parameters.
        Parameters:
        cut - cut==Double.NEGATIVE_INFINITY indicates "don't cut".
      • staticNextDouble

        public static double staticNextDouble​(double mean,
                                              double gamma,
                                              double cut)
        Returns a random number from the distribution.
        Parameters:
        cut - cut==Double.NEGATIVE_INFINITY indicates "don't cut".
      • toString

        public java.lang.String toString()
        Returns a String representation of the receiver.
        Overrides:
        toString in class java.lang.Object
      • xstaticSetRandomGenerator

        private static void xstaticSetRandomGenerator​(RandomEngine randomGenerator)
        Sets the uniform random number generated shared by all static methods.
        Parameters:
        randomGenerator - the new uniform random number generator to be shared.