Practical Neural Network Recipes in C++
Chap4 Time-Series Prediction
detrend : raw data sequence - linear reggression line
Timothy Masters