public static double meanDouble ( long [ ] values , final int start , final int length ) { double mean = ( ( double ) sum ( values , start , length ) ) / ( ( double ) length ) ; return mean ; }
Used internally to avoid loss and rounding errors a bit .