public DirichletDensityFunction(double[] alphas){
  this.alphas=alphas;
  if (alphas.length < 2) {
    log.warning("must have at least 2 alphas");
  }
  for (int i=0; i < alphas.length; i++) {
    if (alphas[i] <= 0) {
      log.warning("alphas of the Dirichlet distribution are not well formed");
    }
  }
  C=calculateC();
}

public DirichletDensityFunction ( double [ ] alphas ) { this . alphas = alphas ; if ( alphas . length < 2 ) { log . warning ( "must have at least 2 alphas" ) ; } for ( int i = 0 ; i < alphas . length ; i ++ ) { if ( alphas [ i ] <= 0 ) { log . warning ( "alphas of the Dirichlet distribution are not well formed" ) ; } } C = calculateC ( ) ; }
create a new dirichlet density function with the provided alpha parameters
