For my readers who use R, Bob Rudis (@hrbrmstr) just posted a version of this method implemented in R. Thanks, Bob!