compute data mean for float_data
move if outside of forloop
Merge pull request #134 from mavenlin/computemean

Allow single data in computation of the data mean.