Introduction - If you have any usage issues, please Google them yourself
BDS statistics:
Correlation integral (from chaos theory) is used in this code. The time series is embedded in an m-dimensional space and the near neighbors are used to calculate the statistics.