Use of gamma function
In sdk, we use a gamma function in the following files but the result could be irrelevant :
- There is a deprecated gamma function in math.h
- Another one in cwtmath
I assume that it should use our gamma function. I propose to rename it cwt_gamma What do you think ?
sdk/dependencies-source/wavelib/src/cwt.c:97:52: warning: 'gamma' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations] norm = sqrt(2.0 * pi * scale1 / dt) * sqrt(1.0 / gamma(m + 0.50)); ^~~~~ tgamma /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:755:15: note: 'gamma' has been explicitly marked deprecated here extern double gamma(double) ^ /Users/laurent/ownCloud-100Go-CNRS/Work/OpenVibes/meta-63-add-package-management/sdk/dependencies-source/wavelib/src/cwt.c:254:58: warning: 'gamma' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations] const double coeff = sign * pow(2.0, (double)m / 2) / gamma(0.5); ^~~~~ tgamma /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:755:15: note: 'gamma' has been explicitly marked deprecated here extern double gamma(double) ^ /Users/laurent/ownCloud-100Go-CNRS/Work/OpenVibes/meta-63-add-package-management/sdk/dependencies-source/wavelib/src/cwt.c:255:33: warning: 'gamma' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations] *val = coeff * gamma(((double)m + 1.0) / 2.0) / sqrt(gamma(m + 0.50)); ^~~~~ tgamma /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:755:15: note: 'gamma' has been explicitly marked deprecated here extern double gamma(double) ^ /Users/laurent/ownCloud-100Go-CNRS/Work/OpenVibes/meta-63-add-package-management/sdk/dependencies-source/wavelib/src/cwt.c:255:71: warning: 'gamma' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations] *val = coeff * gamma(((double)m + 1.0) / 2.0) / sqrt(gamma(m + 0.50)); ^~~~~ tgamma /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:755:15: note: 'gamma' has been explicitly marked deprecated here extern double gamma(double) ^