Class ChengBetaSampler

    • Method Summary

      Modifier and Type Method Description
      double sample()
      Creates a sample.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ChengBetaSampler

        public ChengBetaSampler​(UniformRandomProvider rng,
                                double alpha,
                                double beta)
        Creates a sampler instance.
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        alpha - Distribution first shape parameter.
        beta - Distribution second shape parameter.
        Throws:
        java.lang.IllegalArgumentException - if alpha <= 0 or beta <= 0
    • Method Detail

      • sample

        public double sample()
        Creates a sample.
        Specified by:
        sample in interface ContinuousSampler
        Returns:
        a sample.