@@ -29,13 +29,13 @@ import org.apache.spark.util.Utils
2929
3030/**
3131 * :: Experimental ::
32- * Generator methods for creating RDDs comprised of i.i.d. samples from some distribution.
32+ * Generator methods for creating RDDs comprised of ` i.i.d.` samples from some distribution.
3333 */
3434@ Experimental
3535object RandomRDDs {
3636
3737 /**
38- * Generates an RDD comprised of i.i.d. samples from the uniform distribution `U(0.0, 1.0)`.
38+ * Generates an RDD comprised of ` i.i.d.` samples from the uniform distribution `U(0.0, 1.0)`.
3939 *
4040 * To transform the distribution in the generated RDD from `U(0.0, 1.0)` to `U(a, b)`, use
4141 * `RandomRDDs.uniformRDD(sc, n, p, seed).map(v => a + (b - a) * v)`.
@@ -44,7 +44,7 @@ object RandomRDDs {
4444 * @param size Size of the RDD.
4545 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
4646 * @param seed Random seed (default: a random long integer).
47- * @return RDD[Double] comprised of i.i.d. samples ~ `U(0.0, 1.0)`.
47+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ `U(0.0, 1.0)`.
4848 */
4949 def uniformRDD (
5050 sc : SparkContext ,
@@ -81,7 +81,7 @@ object RandomRDDs {
8181 }
8282
8383 /**
84- * Generates an RDD comprised of i.i.d. samples from the standard normal distribution.
84+ * Generates an RDD comprised of ` i.i.d.` samples from the standard normal distribution.
8585 *
8686 * To transform the distribution in the generated RDD from standard normal to some other normal
8787 * `N(mean, sigma^2^)`, use `RandomRDDs.normalRDD(sc, n, p, seed).map(v => mean + sigma * v)`.
@@ -90,7 +90,7 @@ object RandomRDDs {
9090 * @param size Size of the RDD.
9191 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
9292 * @param seed Random seed (default: a random long integer).
93- * @return RDD[Double] comprised of i.i.d. samples ~ N(0.0, 1.0).
93+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ N(0.0, 1.0).
9494 */
9595 def normalRDD (
9696 sc : SparkContext ,
@@ -127,14 +127,15 @@ object RandomRDDs {
127127 }
128128
129129 /**
130- * Generates an RDD comprised of i.i.d. samples from the Poisson distribution with the input mean.
130+ * Generates an RDD comprised of `i.i.d.` samples from the Poisson distribution with the input
131+ * mean.
131132 *
132133 * @param sc SparkContext used to create the RDD.
133134 * @param mean Mean, or lambda, for the Poisson distribution.
134135 * @param size Size of the RDD.
135136 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
136137 * @param seed Random seed (default: a random long integer).
137- * @return RDD[Double] comprised of i.i.d. samples ~ Pois(mean).
138+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ Pois(mean).
138139 */
139140 def poissonRDD (
140141 sc : SparkContext ,
@@ -177,15 +178,15 @@ object RandomRDDs {
177178 }
178179
179180 /**
180- * Generates an RDD comprised of i.i.d. samples from the exponential distribution with
181+ * Generates an RDD comprised of ` i.i.d.` samples from the exponential distribution with
181182 * the input mean.
182183 *
183184 * @param sc SparkContext used to create the RDD.
184185 * @param mean Mean, or 1 / lambda, for the exponential distribution.
185186 * @param size Size of the RDD.
186187 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
187188 * @param seed Random seed (default: a random long integer).
188- * @return RDD[Double] comprised of i.i.d. samples ~ Pois(mean).
189+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ Pois(mean).
189190 */
190191 def exponentialRDD (
191192 sc : SparkContext ,
@@ -228,7 +229,7 @@ object RandomRDDs {
228229 }
229230
230231 /**
231- * Generates an RDD comprised of i.i.d. samples from the gamma distribution with the input
232+ * Generates an RDD comprised of ` i.i.d.` samples from the gamma distribution with the input
232233 * shape and scale.
233234 *
234235 * @param sc SparkContext used to create the RDD.
@@ -237,7 +238,7 @@ object RandomRDDs {
237238 * @param size Size of the RDD.
238239 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
239240 * @param seed Random seed (default: a random long integer).
240- * @return RDD[Double] comprised of i.i.d. samples ~ Pois(mean).
241+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ Pois(mean).
241242 */
242243 def gammaRDD (
243244 sc : SparkContext ,
@@ -287,7 +288,7 @@ object RandomRDDs {
287288 }
288289
289290 /**
290- * Generates an RDD comprised of i.i.d. samples from the log normal distribution with the input
291+ * Generates an RDD comprised of ` i.i.d.` samples from the log normal distribution with the input
291292 * mean and standard deviation
292293 *
293294 * @param sc SparkContext used to create the RDD.
@@ -296,7 +297,7 @@ object RandomRDDs {
296297 * @param size Size of the RDD.
297298 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
298299 * @param seed Random seed (default: a random long integer).
299- * @return RDD[Double] comprised of i.i.d. samples ~ Pois(mean).
300+ * @return RDD[Double] comprised of ` i.i.d.` samples ~ Pois(mean).
300301 */
301302 def logNormalRDD (
302303 sc : SparkContext ,
@@ -348,14 +349,14 @@ object RandomRDDs {
348349
349350 /**
350351 * :: DeveloperApi ::
351- * Generates an RDD comprised of i.i.d. samples produced by the input RandomDataGenerator.
352+ * Generates an RDD comprised of ` i.i.d.` samples produced by the input RandomDataGenerator.
352353 *
353354 * @param sc SparkContext used to create the RDD.
354355 * @param generator RandomDataGenerator used to populate the RDD.
355356 * @param size Size of the RDD.
356357 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
357358 * @param seed Random seed (default: a random long integer).
358- * @return RDD[Double] comprised of i.i.d. samples produced by generator.
359+ * @return RDD[Double] comprised of ` i.i.d.` samples produced by generator.
359360 */
360361 @ DeveloperApi
361362 def randomRDD [T : ClassTag ](
@@ -370,7 +371,7 @@ object RandomRDDs {
370371 // TODO Generate RDD[Vector] from multivariate distributions.
371372
372373 /**
373- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from the
374+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from the
374375 * uniform distribution on `U(0.0, 1.0)`.
375376 *
376377 * @param sc SparkContext used to create the RDD.
@@ -424,15 +425,15 @@ object RandomRDDs {
424425 }
425426
426427 /**
427- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from the
428+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from the
428429 * standard normal distribution.
429430 *
430431 * @param sc SparkContext used to create the RDD.
431432 * @param numRows Number of Vectors in the RDD.
432433 * @param numCols Number of elements in each Vector.
433434 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
434435 * @param seed Random seed (default: a random long integer).
435- * @return RDD[Vector] with vectors containing i.i.d. samples ~ `N(0.0, 1.0)`.
436+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples ~ `N(0.0, 1.0)`.
436437 */
437438 def normalVectorRDD (
438439 sc : SparkContext ,
@@ -478,7 +479,7 @@ object RandomRDDs {
478479 }
479480
480481 /**
481- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from a
482+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from a
482483 * log normal distribution.
483484 *
484485 * @param sc SparkContext used to create the RDD.
@@ -488,7 +489,7 @@ object RandomRDDs {
488489 * @param numCols Number of elements in each Vector.
489490 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
490491 * @param seed Random seed (default: a random long integer).
491- * @return RDD[Vector] with vectors containing i.i.d. samples.
492+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples.
492493 */
493494 def logNormalVectorRDD (
494495 sc : SparkContext ,
@@ -544,7 +545,7 @@ object RandomRDDs {
544545 }
545546
546547 /**
547- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from the
548+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from the
548549 * Poisson distribution with the input mean.
549550 *
550551 * @param sc SparkContext used to create the RDD.
@@ -553,7 +554,7 @@ object RandomRDDs {
553554 * @param numCols Number of elements in each Vector.
554555 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`)
555556 * @param seed Random seed (default: a random long integer).
556- * @return RDD[Vector] with vectors containing i.i.d. samples ~ Pois(mean).
557+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples ~ Pois(mean).
557558 */
558559 def poissonVectorRDD (
559560 sc : SparkContext ,
@@ -603,7 +604,7 @@ object RandomRDDs {
603604 }
604605
605606 /**
606- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from the
607+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from the
607608 * exponential distribution with the input mean.
608609 *
609610 * @param sc SparkContext used to create the RDD.
@@ -612,7 +613,7 @@ object RandomRDDs {
612613 * @param numCols Number of elements in each Vector.
613614 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`)
614615 * @param seed Random seed (default: a random long integer).
615- * @return RDD[Vector] with vectors containing i.i.d. samples ~ Exp(mean).
616+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples ~ Exp(mean).
616617 */
617618 def exponentialVectorRDD (
618619 sc : SparkContext ,
@@ -665,7 +666,7 @@ object RandomRDDs {
665666
666667
667668 /**
668- * Generates an RDD[Vector] with vectors containing i.i.d. samples drawn from the
669+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples drawn from the
669670 * gamma distribution with the input shape and scale.
670671 *
671672 * @param sc SparkContext used to create the RDD.
@@ -675,7 +676,7 @@ object RandomRDDs {
675676 * @param numCols Number of elements in each Vector.
676677 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`)
677678 * @param seed Random seed (default: a random long integer).
678- * @return RDD[Vector] with vectors containing i.i.d. samples ~ Exp(mean).
679+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples ~ Exp(mean).
679680 */
680681 def gammaVectorRDD (
681682 sc : SparkContext ,
@@ -731,7 +732,7 @@ object RandomRDDs {
731732
732733 /**
733734 * :: DeveloperApi ::
734- * Generates an RDD[Vector] with vectors containing i.i.d. samples produced by the
735+ * Generates an RDD[Vector] with vectors containing ` i.i.d.` samples produced by the
735736 * input RandomDataGenerator.
736737 *
737738 * @param sc SparkContext used to create the RDD.
@@ -740,7 +741,7 @@ object RandomRDDs {
740741 * @param numCols Number of elements in each Vector.
741742 * @param numPartitions Number of partitions in the RDD (default: `sc.defaultParallelism`).
742743 * @param seed Random seed (default: a random long integer).
743- * @return RDD[Vector] with vectors containing i.i.d. samples produced by generator.
744+ * @return RDD[Vector] with vectors containing ` i.i.d.` samples produced by generator.
744745 */
745746 @ DeveloperApi
746747 def randomVectorRDD (sc : SparkContext ,
0 commit comments