define float type as numpy.float64
make mean() and variance() use global float type
use global float data type