mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
fix: invert sign of group delay
This commit is contained in:
parent
b80790477c
commit
1cf19fa50a
2
plot.c
2
plot.c
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue