Skip to content
Snippets Groups Projects
Commit 20b33bc4 authored by Holden Karau's avatar Holden Karau
Browse files

Remove extranious type declerations

parent 092b87e7
No related branches found
No related tags found
No related merge requests found
......@@ -99,13 +99,13 @@ class DoubleRDDFunctions(self: RDD[Double]) extends Logging with Serializable {
throw new UnsupportedOperationException(
"Histogram on either an empty RDD or RDD containing +/-infinity or NaN")
}
val increment: Double = (max-min)/bucketCount.toDouble
val increment = (max-min)/bucketCount.toDouble
val range = if (increment != 0) {
Range.Double.inclusive(min, max, increment)
} else {
List(min, min)
}
val buckets: Array[Double] = range.toArray
val buckets = range.toArray
(buckets, histogram(buckets, true))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment