Oh hey, actually I noticed why you had to do this: this file imports `java.lang.Double` as `Double`, overriding the Scala one (which is really `double` in Java)! Pretty nasty actually, but I'll fix it later. The upshot though is that right now this method takes a `Double[]` instead of a `double[]`, which may be confusing to Java users. The reason that `JavaRDD` had to take `java.lang.Double` is because you can't template Java classes on primitive types. Anyway, I'll repair it later.