/// <inheritdoc /> public override double ProbabilityDensity(double x) { if (x <= 0.0) { return(0.0); } else { double p = nu1 * x; double q = nu2 + p; double y = p / q; double u = nu1 * nu2 / (q * q); return(u * beta.ProbabilityDensity(y)); } }
/// <inheritdoc /> public override double ProbabilityDensity(double x) { if (x <= 0.0) { return(0.0); } else { double p = nu1 * x; double q = nu2 + p; double y = p / q; double u = nu1 * nu2 / (q * q); return(u * beta.ProbabilityDensity(y)); /* * double N = Math.Pow(nu1, 0.5 * nu1) * Math.Pow(nu2, 0.5 * nu2) / * AdvancedMath.Beta(0.5 * nu1, 0.5 * nu2); * return (N * Math.Pow(x, 0.5 * nu1 - 1.0) * Math.Pow(nu2 + nu1 * x, -0.5 * (nu1 + nu2))); */ } }