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 * FastMath . sqrt ( ( eprob * ( 1 - eprob ) ) / samples ) ) ; }
Estimate the confidence probability of a clustering .