Skip to content

Commit ecab508

Browse files
committed
"fixed checkstyle violation
1 parent 0a9b3e3 commit ecab508

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/apache/spark/util/random/SamplingUtils.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private[spark] object SamplingUtils {
3636
* @param withReplacement whether sampling with replacement
3737
* @return a sampling rate that guarantees sufficient sample size with 99.99% success rate
3838
*/
39-
def computeFractionForSampleSize(sampleSizeLowerBound: Int, total: Long, withReplacement: Boolean): Double = {
39+
def computeFractionForSampleSize(sampleSizeLowerBound: Int, total: Long,
40+
withReplacement: Boolean): Double = {
4041
val fraction = sampleSizeLowerBound.toDouble / total
4142
if (withReplacement) {
4243
val numStDev = if (sampleSizeLowerBound < 12) 9 else 5

0 commit comments

Comments
 (0)