function pdf(x, alpha, beta) {
        if (x > 1 || x < 0)
          return 0;
        return (Math.pow(x, alpha - 1) * Math.pow(1 - x, beta - 1)) /
            jStat.betafn(alpha, beta);
      }
// Non-log form of the Beta pdf
Non-log form of the Beta pdf
Non - log form of the Beta pdf
function pdf(x, alpha, beta) {
        if (x > 1 || x < 0)
          return 0;
        return (Math.pow(x, alpha - 1) * Math.pow(1 - x, beta - 1)) /
            jStat.betafn(alpha, beta);
      }
function pdf ( x , alpha , beta ) { if ( x > 1 || x < 0 ) return 0 ; return ( Math . pow ( x , alpha - 1 ) * Math . pow ( 1 - x , beta - 1 ) ) / jStat . betafn ( alpha , beta ) ; }
Non-log form of the Beta pdf
Non - log form of the Beta pdf