search for: specmax

Displaying 1 result from an estimated 1 matches for "specmax".

Did you mean: specman
2000 Jun 28
2
trivial optimization to psy.c
...===================== --- psy.c Mon Jun 19 12:05:57 2000 +++ - Wed Jun 28 15:14:17 2000 @@ -550,12 +550,11 @@ frameno++; memset(flr,0,n*sizeof(double)); - for(i=0;i<n;i++)work[i]=fabs(f[i]); - - /* find the highest peak so we know the limits */ for(i=0;i<n;i++){ - if(work[i]>specmax)specmax=work[i]; - } + work[i]=fabs(f[i]); + if(work[i]>specmax) + specmax=work[i]; + } specmax=todB(specmax); /* don't use the smoothed data for noise */ ================================================================= -Andy __________________________________________...