Refactor some repetitive function calls. Correct the casting to `float64()`
Refactor some repetitive function calls. Correct the casting to `float64()`

linhvo/pilosa,raskle/pilosa,alanbernstein/pilosa,alanbernstein/pilosa,raskle/pilosa,travisturner/pilosa,linhvo/pilosa,linhvo/pilosa,alanbernstein/pilosa,raskle/pilosa