<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Sep 16 15:55:12 PDT 2015 -->
<title>RandomRDDs</title>
<meta name="date" content="2015-09-16">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RandomRDDs";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/mllib/random/StandardNormalGenerator.html" title="class in org.apache.spark.mllib.random"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/mllib/random/RandomRDDs.html" target="_top">Frames</a></li>
<li><a href="RandomRDDs.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.spark.mllib.random</div>
<h2 title="Class RandomRDDs" class="title">Class RandomRDDs</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.spark.mllib.random.RandomRDDs</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">RandomRDDs</span>
extends java.lang.Object</pre>
<div class="block">:: Experimental ::
Generator methods for creating RDDs comprised of <code>i.i.d.</code> samples from some distribution.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#RandomRDDs()">RandomRDDs</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long)">exponentialJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">exponentialJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)">exponentialJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)"><code>exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">exponentialJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default number of partitions
and the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int)">exponentialJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)">exponentialJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)"><code>exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)">exponentialRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the exponential distribution with
the input mean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)">exponentialVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
exponential distribution with the input mean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long)">gammaJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">gammaJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)">gammaJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)"><code>gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">gammaJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int)">gammaJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)">gammaJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)"><code>gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)">gammaRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double shape,
double scale,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the gamma distribution with the input
shape and scale.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)">gammaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
gamma distribution with the input shape and scale.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long)">logNormalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">logNormalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)">logNormalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)"><code>logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">logNormalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default number of partitions and
the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int)">logNormalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)">logNormalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)"><code>logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)">logNormalRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
double std,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the log normal distribution with the input
mean and standard deviation</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)">logNormalVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from a
log normal distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long)">normalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">normalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)">normalJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalRDD(org.apache.spark.SparkContext, long, int, long)"><code>normalRDD(org.apache.spark.SparkContext, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">normalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int)">normalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)">normalJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)"><code>normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalRDD(org.apache.spark.SparkContext, long, int, long)">normalRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the standard normal distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)">normalVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
standard normal distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long)">poissonJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">poissonJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)">poissonJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonRDD(org.apache.spark.SparkContext, double, long, int, long)"><code>poissonRDD(org.apache.spark.SparkContext, double, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">poissonJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int)">poissonJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)">poissonJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)"><code>poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonRDD(org.apache.spark.SparkContext, double, long, int, long)">poissonRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the Poisson distribution with the input
mean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)">poissonVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
Poisson distribution with the input mean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <T> <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><T></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#randomRDD(org.apache.spark.SparkContext, org.apache.spark.mllib.random.RandomDataGenerator, long, int, long, scala.reflect.ClassTag)">randomRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
<a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random">RandomDataGenerator</a><T> generator,
long size,
int numPartitions,
long seed,
scala.reflect.ClassTag<T> evidence$1)</code>
<div class="block">:: DeveloperApi ::
Generates an RDD comprised of <code>i.i.d.</code> samples produced by the input RandomDataGenerator.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#randomVectorRDD(org.apache.spark.SparkContext, org.apache.spark.mllib.random.RandomDataGenerator, long, int, int, long)">randomVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
<a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random">RandomDataGenerator</a><java.lang.Object> generator,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">:: DeveloperApi ::
Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples produced by the
input RandomDataGenerator.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long)">uniformJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">uniformJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)">uniformJavaRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformRDD(org.apache.spark.SparkContext, long, int, long)"><code>uniformRDD(org.apache.spark.SparkContext, long, int, long)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">uniformJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int)">uniformJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions)</code>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default seed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)">uniformJavaVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)"><code>uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformRDD(org.apache.spark.SparkContext, long, int, long)">uniformRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long size,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the uniform distribution <code>U(0.0, 1.0)</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)">uniformVectorRDD</a></strong>(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long numRows,
int numCols,
int numPartitions,
long seed)</code>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
uniform distribution on <code>U(0.0, 1.0)</code>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="RandomRDDs()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RandomRDDs</h4>
<pre>public RandomRDDs()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="uniformRDD(org.apache.spark.SparkContext, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> uniformRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the uniform distribution <code>U(0.0, 1.0)</code>.
<p>
To transform the distribution in the generated RDD from <code>U(0.0, 1.0)</code> to <code>U(a, b)</code>, use
<code>RandomRDDs.uniformRDD(sc, n, p, seed).map(v => a + (b - a) * v)</code>.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ <code>U(0.0, 1.0)</code>.</dd></dl>
</li>
</ul>
<a name="uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> uniformJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformRDD(org.apache.spark.SparkContext, long, int, long)"><code>uniformRDD(org.apache.spark.SparkContext, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> uniformJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> uniformJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>uniformJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalRDD(org.apache.spark.SparkContext, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> normalRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the standard normal distribution.
<p>
To transform the distribution in the generated RDD from standard normal to some other normal
<code>N(mean, sigma^2^)</code>, use <code>RandomRDDs.normalRDD(sc, n, p, seed).map(v => mean + sigma * v)</code>.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ N(0.0, 1.0).</dd></dl>
</li>
</ul>
<a name="normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> normalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalRDD(org.apache.spark.SparkContext, long, int, long)"><code>normalRDD(org.apache.spark.SparkContext, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> normalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> normalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)"><code>normalJavaRDD(org.apache.spark.api.java.JavaSparkContext, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonRDD(org.apache.spark.SparkContext, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> poissonRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the Poisson distribution with the input
mean.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - Mean, or lambda, for the Poisson distribution.</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ Pois(mean).</dd></dl>
</li>
</ul>
<a name="poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> poissonJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonRDD(org.apache.spark.SparkContext, double, long, int, long)"><code>poissonRDD(org.apache.spark.SparkContext, double, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> poissonJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> poissonJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>poissonJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> exponentialRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the exponential distribution with
the input mean.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - Mean, or 1 / lambda, for the exponential distribution.</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ Pois(mean).</dd></dl>
</li>
</ul>
<a name="exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> exponentialJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)"><code>exponentialRDD(org.apache.spark.SparkContext, double, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> exponentialJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> exponentialJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)"><code>exponentialJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> gammaRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double shape,
double scale,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the gamma distribution with the input
shape and scale.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>shape</code> - shape parameter (> 0) for the gamma distribution</dd><dd><code>scale</code> - scale parameter (> 0) for the gamma distribution</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ Pois(mean).</dd></dl>
</li>
</ul>
<a name="gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> gammaJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)"><code>gammaRDD(org.apache.spark.SparkContext, double, double, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> gammaJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> gammaJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>gammaJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><java.lang.Object> logNormalRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
double std,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD comprised of <code>i.i.d.</code> samples from the log normal distribution with the input
mean and standard deviation
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - mean for the log normal distribution</dd><dd><code>std</code> - standard deviation for the log normal distribution</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples ~ Pois(mean).</dd></dl>
</li>
</ul>
<a name="logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> logNormalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)"><code>logNormalRDD(org.apache.spark.SparkContext, double, double, long, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> logNormalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaDoubleRDD.html" title="class in org.apache.spark.api.java">JavaDoubleRDD</a> logNormalJavaRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long size)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)"><code>logNormalJavaRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>size</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="randomRDD(org.apache.spark.SparkContext, org.apache.spark.mllib.random.RandomDataGenerator, long, int, long, scala.reflect.ClassTag)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>randomRDD</h4>
<pre>public static <T> <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><T> randomRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
<a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random">RandomDataGenerator</a><T> generator,
long size,
int numPartitions,
long seed,
scala.reflect.ClassTag<T> evidence$1)</pre>
<div class="block">:: DeveloperApi ::
Generates an RDD comprised of <code>i.i.d.</code> samples produced by the input RandomDataGenerator.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>generator</code> - RandomDataGenerator used to populate the RDD.</dd><dd><code>size</code> - Size of the RDD.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd><dd><code>evidence$1</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Double] comprised of <code>i.i.d.</code> samples produced by generator.</dd></dl>
</li>
</ul>
<a name="uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> uniformVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
uniform distribution on <code>U(0.0, 1.0)</code>.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD.</dd><dd><code>seed</code> - Seed for the RNG that generates the seed for the generator in each partition.</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing i.i.d samples ~ <code>U(0.0, 1.0)</code>.</dd></dl>
</li>
</ul>
<a name="uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> uniformJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)"><code>uniformVectorRDD(org.apache.spark.SparkContext, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> uniformJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>uniformJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> uniformJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>uniformJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> normalVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
standard normal distribution.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples ~ <code>N(0.0, 1.0)</code>.</dd></dl>
</li>
</ul>
<a name="normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> normalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)"><code>normalVectorRDD(org.apache.spark.SparkContext, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> normalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>normalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> normalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)"><code>normalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> logNormalVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from a
log normal distribution.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - Mean of the log normal distribution.</dd><dd><code>std</code> - Standard deviation of the log normal distribution.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples.</dd></dl>
</li>
</ul>
<a name="logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> logNormalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)"><code>logNormalVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> logNormalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logNormalJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> logNormalJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
double std,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>logNormalJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default number of partitions and
the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>std</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> poissonVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
Poisson distribution with the input mean.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - Mean, or lambda, for the Poisson distribution.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>)</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples ~ Pois(mean).</dd></dl>
</li>
</ul>
<a name="poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> poissonJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)"><code>poissonVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> poissonJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>poissonJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> poissonJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>poissonJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> exponentialVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
exponential distribution with the input mean.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>mean</code> - Mean, or 1 / lambda, for the Exponential distribution.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>)</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples ~ Exp(mean).</dd></dl>
</li>
</ul>
<a name="exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> exponentialJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)"><code>exponentialVectorRDD(org.apache.spark.SparkContext, double, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> exponentialJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exponentialJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> exponentialJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double mean,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)"><code>exponentialJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, long, int, int, long)</code></a> with the default number of partitions
and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>mean</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> gammaVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples drawn from the
gamma distribution with the input shape and scale.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>shape</code> - shape parameter (> 0) for the gamma distribution.</dd><dd><code>scale</code> - scale parameter (> 0) for the gamma distribution.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>)</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples ~ Exp(mean).</dd></dl>
</li>
</ul>
<a name="gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> gammaJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">Java-friendly version of <a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)"><code>gammaVectorRDD(org.apache.spark.SparkContext, double, double, long, int, int, long)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd><dd><code>seed</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> gammaJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols,
int numPartitions)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd><dd><code>numPartitions</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gammaJavaVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/api/java/JavaRDD.html" title="class in org.apache.spark.api.java">JavaRDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> gammaJavaVectorRDD(<a href="../../../../../org/apache/spark/api/java/JavaSparkContext.html" title="class in org.apache.spark.api.java">JavaSparkContext</a> jsc,
double shape,
double scale,
long numRows,
int numCols)</pre>
<div class="block"><a href="../../../../../org/apache/spark/mllib/random/RandomRDDs.html#gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)"><code>gammaJavaVectorRDD(org.apache.spark.api.java.JavaSparkContext, double, double, long, int, int, long)</code></a> with the default number of partitions and the default seed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jsc</code> - (undocumented)</dd><dd><code>shape</code> - (undocumented)</dd><dd><code>scale</code> - (undocumented)</dd><dd><code>numRows</code> - (undocumented)</dd><dd><code>numCols</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="randomVectorRDD(org.apache.spark.SparkContext, org.apache.spark.mllib.random.RandomDataGenerator, long, int, int, long)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>randomVectorRDD</h4>
<pre>public static <a href="../../../../../org/apache/spark/rdd/RDD.html" title="class in org.apache.spark.rdd">RDD</a><<a href="../../../../../org/apache/spark/mllib/linalg/Vector.html" title="interface in org.apache.spark.mllib.linalg">Vector</a>> randomVectorRDD(<a href="../../../../../org/apache/spark/SparkContext.html" title="class in org.apache.spark">SparkContext</a> sc,
<a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random">RandomDataGenerator</a><java.lang.Object> generator,
long numRows,
int numCols,
int numPartitions,
long seed)</pre>
<div class="block">:: DeveloperApi ::
Generates an RDD[Vector] with vectors containing <code>i.i.d.</code> samples produced by the
input RandomDataGenerator.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sc</code> - SparkContext used to create the RDD.</dd><dd><code>generator</code> - RandomDataGenerator used to populate the RDD.</dd><dd><code>numRows</code> - Number of Vectors in the RDD.</dd><dd><code>numCols</code> - Number of elements in each Vector.</dd><dd><code>numPartitions</code> - Number of partitions in the RDD (default: <code>sc.defaultParallelism</code>).</dd><dd><code>seed</code> - Random seed (default: a random long integer).</dd>
<dt><span class="strong">Returns:</span></dt><dd>RDD[Vector] with vectors containing <code>i.i.d.</code> samples produced by generator.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/spark/mllib/random/RandomDataGenerator.html" title="interface in org.apache.spark.mllib.random"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/mllib/random/StandardNormalGenerator.html" title="class in org.apache.spark.mllib.random"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/mllib/random/RandomRDDs.html" target="_top">Frames</a></li>
<li><a href="RandomRDDs.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<script defer="defer" type="text/javascript" src="../../../../../lib/jquery.js"></script><script defer="defer" type="text/javascript" src="../../../../../lib/api-javadocs.js"></script></body>
</html>