Skip to content

Commit

Permalink
"fixed checkstyle violation
Browse files Browse the repository at this point in the history
  • Loading branch information
dorx committed Jun 10, 2014
1 parent 0a9b3e3 commit ecab508
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private[spark] object SamplingUtils {
* @param withReplacement whether sampling with replacement
* @return a sampling rate that guarantees sufficient sample size with 99.99% success rate
*/
def computeFractionForSampleSize(sampleSizeLowerBound: Int, total: Long, withReplacement: Boolean): Double = {
def computeFractionForSampleSize(sampleSizeLowerBound: Int, total: Long,
withReplacement: Boolean): Double = {
val fraction = sampleSizeLowerBound.toDouble / total
if (withReplacement) {
val numStDev = if (sampleSizeLowerBound < 12) 9 else 5
Expand Down

0 comments on commit ecab508

Please sign in to comment.