stats

inline fun <T : Number> JavaRDD<T>.stats(): StatCounter

Return a org.apache.spark.util.StatCounter object that captures the mean, variance and count of the RDD's elements in one operation.