a
b
public BetaPrimeDistribution([Positive] double alpha, [Positive] double beta) { if (alpha <= 0) throw new ArgumentOutOfRangeException("alpha", "The shape parameter alpha must be positive."); if (beta < 0) throw new ArgumentOutOfRangeException("beta", "The shape parameter beta must be positive."); this.alpha = alpha; this.beta = beta; }