iOS: Accurately determining energy of a bump from accelerometer output
问题 I am creating a tuning fork app, where you pat the iPhone into the palm of your other hand, or against a soft surface in order to set the fork zinging. So I would like to detect the energy contained in each 'bump' (EDIT: Removed a ton of gumpf) Can anyone help me crack this one? 回答1: Thanks to one of the wizards on freenode's #math channel (thanks Igor), I have a really good working solution. You use the standard method to fire a callback at the maximum frequency possible (100Hz), which will