ASAP: Prioritizing Attention via Time Series Smoothing
Numerical Recipes in C, 2nd Edition.