CalculateCorrDim function

Correlation sum, correlation dimension and generalized correlation dimension (order q >1)