private double computeConfidence(int support,int samples){
  final double z=NormalDistribution.standardNormalQuantile(alpha);
  final double eprob=support / (double)samples;
  return Math.max(0.,eprob - z * Math.sqrt((eprob * (1 - eprob)) / samples));
}

private double computeConfidence ( int support , int samples ) { final double z = NormalDistribution . standardNormalQuantile ( alpha ) ; final double eprob = support / ( double ) samples ; return Math . max ( 0. , eprob - z * Math . sqrt ( ( eprob * ( 1 - eprob ) ) / samples ) ) ; }
estimate the confidence probability of a clustering .
