Improve initial FD phi estimate when starting up
patch by jbellis; reviewed by brandonwilliams for CASSANDRA-6385
merge from 1.2
convert sum to double before dividing
make inner class static