You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/07/08 09:29:26 UTC

git commit: Updated programming-guide.md

Repository: spark
Updated Branches:
  refs/heads/master 50561f439 -> 0128905ee


Updated programming-guide.md

Made sure that readers know the random number generator seed argument, within the 'takeSample' method, is optional.

Author: Rishi Verma <ri...@apache.org>

Closes #1324 from riverma/patch-1 and squashes the following commits:

4699676 [Rishi Verma] Updated programming-guide.md


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/0128905e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/0128905e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/0128905e

Branch: refs/heads/master
Commit: 0128905eea9f8c597ca238b14c18908995511e76
Parents: 50561f4
Author: Rishi Verma <ri...@apache.org>
Authored: Tue Jul 8 00:29:23 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
Committed: Tue Jul 8 00:29:23 2014 -0700

----------------------------------------------------------------------
 docs/programming-guide.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/0128905e/docs/programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 06e4c4c..b09d634 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>