Lines Matching defs:max_P
36 Pb = max_P * (avg - th_min)/(th_max-th_min)
39 Pb changes from 0 (at avg==th_min) to max_P (avg==th_max).
40 max_P should be small (not 1), usually 0.01..0.02 is good value.
42 max_P is chosen as a number, so that max_P/(th_max-th_min)
55 Plog is related to max_P by formula:
57 max_P = (qth_max-qth_min)/2^Plog;
60 corresponds to max_P=0.02
107 * max_P is a Q0.32 fixed point number (with 32 bits mantissa)
108 * max_P between 0.01 and 0.5 (1% - 50%) [ Its no longer a negative power of two ]
132 u32 max_P; /* probability, [0 .. 1.0] 32 scaled */
133 /* reciprocal_value(max_P / qth_delta) */
231 u8 Scell_log, u8 *stab, u32 max_P)
243 if (!max_P) {
244 max_P = red_maxp(Plog);
245 max_P *= delta; /* max_P = (qth_max - qth_min)/2^Plog */
247 p->max_P = max_P;
248 max_p_delta = max_P / delta;
376 (0..1/max_P)*(qth_max-qth_min)
385 max_P*(qavg - qth_min)/(qth_max-qth_min) < rnd/qcount
456 if (qavg > p->target_max && p->max_P <= MAX_P_MAX)
457 p->max_P += MAX_P_ALPHA(p->max_P); /* maxp = maxp + alpha */
458 else if (qavg < p->target_min && p->max_P >= MAX_P_MIN)
459 p->max_P = (p->max_P/10)*9; /* maxp = maxp * Beta */
461 max_p_delta = DIV_ROUND_CLOSEST(p->max_P, p->qth_delta);