ГОСТ Р 56047—2014
int к, i. sum;
int chit = 0. ch1r = 0. ch2t = 0. ch2r = 0;
for(k=0;k<hann-BOUNDWIN+1 ;k++) {
if(!ch1t) {
sum = 0;
for(i=0;i<BOUNDWIN;i++)
sum += abs(ch1test(k+i]);
if(sum > BOUNDLIMIT)
c h its 1;
>
if(!ch1r) {
sum = 0;
for(i=0;i<BOUNDWIN;i++)
sum += abs(ch1ref[k+ij);
if(sum > BOUNDLIMIT)
ch1r = 1:
}
if(ch1t || ch1r)W || or &&
return 1;
)
if(ch2test == NULL && ch2ref == NULL)
return 0;
for(k=0;k<hann-BOUNDWIN+1;k++) {
if(!ch2t) {
sum = 0;
for{i=0;i<BOUNDWIN;i++)
sum += abs(ch2test[k+i|):
if(sum > BOUNDLIMIT)
ch2t= 1;
)
if(!ch2r) {
sum = 0;
for(i=0;i<BOUNDWIN;i++)
sum += abs(ch2reflk+ij);
if(sum > BOUNDLIMIT)
ch2r = 1;
)
if((ch1t || ch2t) || (ch1r || ch2r)> II || or &&
return 1;
return 0;
}
Файп: critbandgroup.h
/* Function prototypes V
int critbandgroup(doub!e *, int. int. double ’);
intAddlntNoise(double *);
/* Prototypes end V
Файл: critbandgroup.c
include <stdl»b.h>
include <math.h>
include «common.h>
^include <critbandgroup.h>
extern double *fL. ЧС. *fU;
extern int bark;
67