Skip to content

Commit

Permalink
Fix Python example to use normalRDD as advertised
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Nov 6, 2015
1 parent f328fed commit ee5c6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mllib-statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ sc = ... # SparkContext

# Generate a random double RDD that contains 1 million i.i.d. values drawn from the
# standard normal distribution `N(0, 1)`, evenly distributed in 10 partitions.
u = RandomRDDs.uniformRDD(sc, 1000000L, 10)
u = RandomRDDs.normalRDD(sc, 1000000L, 10)
# Apply a transform to get a random double RDD following `N(1, 4)`.
v = u.map(lambda x: 1.0 + 2.0 * x)
{% endhighlight %}
Expand Down

0 comments on commit ee5c6e2

Please sign in to comment.