From f154ea021b1502a0045d7690ac9d9f1ee903b183 Mon Sep 17 00:00:00 2001 From: Reynold Xin Date: Tue, 3 Jun 2014 17:37:50 -0700 Subject: [PATCH] Added a comment on the value bound for testing. --- .../test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala b/core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala index 461ffeddbff2a..b9bcc7c1321c3 100644 --- a/core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala +++ b/core/src/test/scala/org/apache/spark/rdd/PairRDDFunctionsSuite.scala @@ -121,6 +121,8 @@ class PairRDDFunctionsSuite extends FunSuite with SharedSparkContext { */ val p = 20 val sp = 0 + // When p = 20, the relative accuracy is about 0.001. So with high probability, the + // relative error should be smaller than the threshold 0.005 we use here. val relativeSD = 0.01 // For each value i, there are i tuples with first element equal to i.