I generally call values.stats, e.g.: val stats = myPairRdd.values.stats
On Fri, Sep 12, 2014 at 4:46 PM, rzykov <rzy...@gmail.com> wrote: > Is it possible to use DoubleRDDFunctions > < > https://spark.apache.org/docs/1.0.0/api/java/org/apache/spark/rdd/DoubleRDDFunctions.html > > > for calculating mean and std dev for Paired RDDs (key, value)? > > Now I'm using an approach with ReduceByKey but want to make my code more > concise and readable. > > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Computing-mean-and-standard-deviation-by-key-tp11192p14062.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >