ГОСТ Р ИСО/МЭК 10373-6—2015
0
int max_i-0r
int mm_i- ;
aoubie max-0;
double min-0;
U
Finds higher and lower values of samples
tor (hi_low_i-0; hi_low_i<MAX_SAMPLES; hi_low_l-M>
\
. 1
(env h i_ io w _ -’ !
-Q
1
f
LI {env[hi_low_il<oothLst)
bothist-env|hi_low_i);
LI <env[hl_low_lI>tophlst)
to p h ist-e n v lh i_ lo w _ i);
П
Finds lim its £or the histogram
i
d iff h is t - t o p h is t - b o t h is t ;
for (h i_low _i-0; hi_low_i<:numsdmples; hi low_i*»>
0
\
-i (env lu_Lo*_.’:- )
<
valu e-er.v(h l low i | ;
histir-.d-<m t M2C00* <(v a lu e -b o th ist) / d i f f h i s t ) ); // Performs a lin e a l
q u an tl
2
stio n
hist [histind]‘*;
tor (hi low i-О,- hi low K10C0; hi low_i»»>
<
-f (h.st*hi_low_.‘>minl// Searches Riost frequent value -n the lower halt o£
the form
(
min-r.ist(hl_low_iJ;
min_i-hi_low_i;
)
•Нв..п-(both-st*(di££h.st/2000)*tfr.-n_.));
1
for (hi_low_i-1001; hi_low_i<2G00; hi_low_J>
1
it (hist hi_Iow_i‘>R.ax)
l i
Search cost trequent value -n the upper half of the
form
\
шах-hist.(lii low i|;
№ax_i-hi_low_i;
\
♦Hmax-[bcth.st* (difthist/2000) *(R.ax_i)];
I
/ /
Finds the vaiue ol m_min for bit rates ot
Id
8,
f<?/4 and
Id
2
void Mminlinder(double *env, double Ншах, double Hmin, double *HmaxVHBR, TIMES M.imeres,
int numsaicples)
I
int i-O;
mt t-0;
double compare_hi-0.0;
double compare_lo-0.0;
double compare-0.0;