Use float instead of double in fitting mixture model