A boxer wants to analyze their heart rate monitor data during a training fight. Here's a look at the code that will do it.