diff options
author | Rishi Verma <riverma@apache.org> | 2014-07-08 00:29:23 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-07-08 00:29:23 -0700 |
commit | 0128905eea9f8c597ca238b14c18908995511e76 (patch) | |
tree | 6229802cb3e99f0d2b17ec4a3ef888dfff791367 /docs/programming-guide.md | |
parent | 50561f4396be7d641feb2a7a54a374d294628231 (diff) | |
download | spark-0128905eea9f8c597ca238b14c18908995511e76.tar.gz spark-0128905eea9f8c597ca238b14c18908995511e76.tar.bz2 spark-0128905eea9f8c597ca238b14c18908995511e76.zip |
Updated programming-guide.md
Made sure that readers know the random number generator seed argument, within the 'takeSample' method, is optional.
Author: Rishi Verma <riverma@apache.org>
Closes #1324 from riverma/patch-1 and squashes the following commits:
4699676 [Rishi Verma] Updated programming-guide.md
Diffstat (limited to 'docs/programming-guide.md')
-rw-r--r-- | docs/programming-guide.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 06e4c4ce52..b09d6347cd 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -975,8 +975,8 @@ for details. <td> Return an array with the first <i>n</i> elements of the dataset. Note that this is currently not executed in parallel. Instead, the driver program computes all the elements. </td> </tr> <tr> - <td> <b>takeSample</b>(<i>withReplacement</i>, <i>num</i>, <i>seed</i>) </td> - <td> Return an array with a random sample of <i>num</i> elements of the dataset, with or without replacement, using the given random number generator seed. </td> + <td> <b>takeSample</b>(<i>withReplacement</i>, <i>num</i>, [<i>seed</i>]) </td> + <td> Return an array with a random sample of <i>num</i> elements of the dataset, with or without replacement, optionally pre-specifying a random number generator seed.</td> </tr> <tr> <td> <b>takeOrdered</b>(<i>n</i>, <i>[ordering]</i>) </td> |