class BetaDistribution extends AbstractRealDistribution {

    public double density(double x) {
        final double logDensity = logDensity(x);
        return logDensity == Double.NEGATIVE_INFINITY ? 0 : FastMath.exp(logDensity);
    }

    public  BetaDistribution(double alpha, double beta);
    public  BetaDistribution(double alpha, double beta, double inverseCumAccuracy);
    public  BetaDistribution(RandomGenerator rng, double alpha, double beta);
    public  BetaDistribution(RandomGenerator rng,
                            double alpha,
                            double beta,
                            double inverseCumAccuracy);

}