Class StudentTRV

    • Constructor Detail

      • StudentTRV

        public StudentTRV​(double dof)
        Constructs a StudentT distribution dof degrees of freedom
        Parameters:
        dof - degrees of freedom
      • StudentTRV

        public StudentTRV​(double dof,
                          int streamNum)
        Constructs a StudentT distribution dof degrees of freedom
        Parameters:
        dof - degrees of freedom
        streamNum - the stream number
      • StudentTRV

        public StudentTRV​(double dof,
                          RNStreamIfc rng)
        Constructs a StudentT distribution dof degrees of freedom
        Parameters:
        dof - degrees of freedom
        rng - the random number generator
    • Method Detail

      • getDegreesOfFreedom

        public final double getDegreesOfFreedom()
        Returns:
        the degrees of freedom
      • generate

        protected double generate()
        Specified by:
        generate in class AbstractRVariable
        Returns:
        the randomly generated variate
      • newInstance

        public RVariableIfc newInstance​(RNStreamIfc rng)
        Parameters:
        rng - the RNStreamIfc to use
        Returns:
        a new instance with same parameter values
      • baileysAcceptanceRejection

        public final double baileysAcceptanceRejection()
        Directly generate a random variate using Bailey's acceptance-rejection algorithm
        Returns:
        the generated random variable