ГОСТ Р ИСО/МЭК 10373-6—2015
break;
case ’В’:
(
Start-tlmesp->Lrendind;
while (toutput[indexsamples]<startj// Starts at the rising edge
inaex_samples-»»;
while (index_sarcples<-samples)
l
iL (env2[index_samples1>above)
{
abave-env2[index_samples];
Shoot.ind~tQUtputllndex_samples|;
hr_readex-(above-Hmax) /(Hmax-t.lmesp->b);
if (hr readeKO) // in very strange cases if there’s no overshoot,
the highest
point
hr_reader-0;// in the c_rve car. be cutted off by er.vtilt,
producing а negative hr
l
rnaex_s amples-*»;
\
index Samples-0;
Start-timesp->tfendlnd;
while {toutput.[indexsamples]--0)
inaex_samples-»»;
while (toutput(indexsamples]<start)
inaex_samples^»;
while (env2(indexsamples]!—0)
l
il (env2(lndexsampLes]<anove_b)
(Измененная редакция. Изм. A4:2012.)
{
above_b-env2(index_samples];
shootindb-toutput(indexsamples];
hf_reader-(timesp->b-anove_bj/(Hm*ax-timesp->b);
I
I
mdexsamples♦♦;
I
)
break;
shootreaaer->shootina-shootind;
shootreader->shootmd_b-3hootma_b;
shootreaaer->hr_reaaer-hr reader;
shootreader->hf_reaaer-ht_reader,
shootreaaer->above-above;
shootreader->above b-above b;
П Calculates the modulation index “m"
douDle modulation(char type, double Umax, double b)
I
double m-
0
;
switch (type)
\
case
*A* :
i
fl m ta not defined lot Type A
)
85