Class TSampler

    • Method Detail

      • of

        public static TSampler of​(org.apache.commons.rng.UniformRandomProvider rng,
                                  double degreesOfFreedom)
        Create a new t distribution sampler.
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        degreesOfFreedom - Degrees of freedom.
        Returns:
        the sampler
        Throws:
        IllegalArgumentException - if degreesOfFreedom <= 0