fix: invert sign of group delay

This commit is contained in:
TT 2019-10-21 20:25:17 +09:00
parent b80790477c
commit 1cf19fa50a

2
plot.c
View file

@ -442,7 +442,7 @@ float phase(float *v)
/* /*
* calculate groupdelay * calculate groupdelay
*/ */
float groupdelay(float *w, float *v, float deltaf) float groupdelay(float *v, float *w, float deltaf)
{ {
#if 1 #if 1
// atan(w)-atan(v) = atan((w-v)/(1+wv)) // atan(w)-atan(v) = atan((w-v)/(1+wv))