I think I've figured out how to express what should be a more robust approach as well, so maybe I'll let the device run and display the results from both algorithms and see if mine really is an improvement. If it is, I can upstream that. If it isn't, well, I'll have learned something.