createDistribution

Constructs an instance of the appropriate discrete probability distribution for the provided random variable parameters. If no probability distribution is defined for the supplied type of random variable, then null is returned.