ГОСТ Р ИСО/МЭК 10373-6—2015
0
aouble di£lerenee-0.0;
int going_up-0;
aouble imp1-0.0;
double ampl_max-0.G;//represents theamplitude (Kmax-b), and indirectly”m".
aouble m_deviation-G.O; //countermeaaure1: m_mm < C.2*m ia not considered
double Hmaxcm-0.0;//countermeasure2: m_mln does not start or ena on
borders
double b_cm- .G;
aouble mmin-0.0;
double mmin_cum-0.0;
// Skip all reros
while (env1^1— 0)
’ **;
U
where do we start?
ditterence-env|.1-env|i *1);
iC (ditterertcecO;
going_up-l; // going -p
compare_lo-env(Jl];
else It (dit£erence>
0
>
i
golng_up-0;
! !
going down
compare hi-er.v[jJ;
I
compare-env|
j
];
1
2
ampl_max-(Kmax-Hmin);
m_aeviation-amp max»C. ;
Hmaxcm-Hmax*0
ЛЬ;
b_cm-llmin*l.0b;
timeres->bVHBR-0;
tor (i-j; K-rtomsamples-^;
1
»*}
{
IS <going_up— G> // GOING DOWN
I
it <compare>~env[
1
]j
I
compare-env1
1 1
;
h
else 11 (corrpare<env|
1
]j
(
compare-env[l
1
;
compare_lo-env|
i
1;
going_up-l; // change airection
ampl-(compare_hi-compare_lo);
irarun-(ampl/(compare_hi»compare_lo}>*100;
it
(
ampl>m_aeviation
44
ampl<ampl_max
44
(compare_hi<Kmax_cm
| i
compaie_lo>D cm)j//Countermeasures
I
*KmaxV;;SR-compa re_hi;
tlmeres->bVi:3R-compare_lo;
amp1_max-ampl;
l
I
it (going_up— 1) // GOING UP
i
it {compare<-env[
1
]j
69