mathnet-numerics
mathnet-numerics copied to clipboard
Cross correlation
Implemented and tested cross correlation, similar to the functionality in numpy. The function was added as Correlation.CrossCorrelation(IList<double> x, IList<double> y, CorrelationMode mode) where mode can either be Valid, Same, or Full. The padding modes are equivalent to the numpy function. The algorithm chooses based on the lengths of x and y whether to do the calculation in time-domain or frequency-domain.