ГОСТ Р ИСО/МЭК 10373-6—2015
void overshoot.{TIMES •hiinesp, double Hmax, double *env2, double *toutput, int rate,char
type, lnt samples, SHCOTREADER *ahoohresder)
.
double shootind-
0
0
;
aouble shootina_b-Q.0;
double hr_reader-0.Q;
double hf reader-0.0;
double above-0.0;
double above_b-10.0;
double start-0.0;
int inaexsamples-0;
switch (type)
case ’A’:
i
switch (rate)
l
case (106):
{
et.ait—t.iicesp“>tiend;
while (toutput|index sarrplesj<-st.dih)
ir.dex_samp1es ;
while (env2(index_sairples|!—0)
I
if (env
2
[inoex_aampies1>above)
(Измененная редакция. Изм. A4:2012.)
I
above-erw2(indexsamplesl;
shootino-toutput [mdex_samples];
I
t
ir-.dex^samplea♦»;
<
1
break;
case (212):
case (424):
Case (848):
<
st
ax
t-timesp-^teend;
while (toutput|index sarrplesj<-st.dih)
1r.dex_samp1ea *;
wh
1
le (tndex_samples<-sarcples)
I
If <e:.v2(index_samplea)>above)
1
above-env2|index_3dmples);
shootmd-toutput(indexsamplea);
I
Index samples**;
J
If (above<Hmax)ll In very strange cases 11 there’s no over
shoot, the highest point
above-Hmax,-// m the curve can he cuhted off by envfilt,
producing a negative hr
I
break;
\
84