Hacker News Clone new | comments | show | ask | jobs | submit | github repologin
The Code That Almost Led to Disaster • a Starbase Story (www.thepythoncodingstack.com)
1 points by rbanffy 3 hours ago | hide | past | web | 1 comment | favorite





There is a second issue with the code. The calculation of the mean isn't numerically stable. Instead use:

mean_power = mean_power + (power - mean_power) / count




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: