Class RandomEx3

java.lang.Object
com.imsl.test.example.stat.RandomEx3

public class RandomEx3 extends Object

Generates a pseudorandom sample from a discrete distribution.

In this example, nextDiscrete is used to generate 2 groups of five pseudorandom variates from the discrete distribution:

$$\begin{array}{c}\operatorname{Pr}(X=1)=0.05\\ \operatorname{Pr}(X=2)=0.45\\\operatorname{Pr}(X=3)=0.31 \\ \operatorname{Pr}(X=4)=0.04\\\operatorname{Pr}(X=5)=0.15\end{array}$$
See Also:
  • Constructor Details

    • RandomEx3

      public RandomEx3()
  • Method Details

    • main

      public static void main(String[] args)