ns-allinone-2.35/queue/red.cc
double
REDQueue::calculate_p(double v_ave, double th_max, int gentle, double v_a, 
	double v_b, double v_c, double v_d, double max_p_inv)
{
	double p = calculate_p_new(v_ave, th_max, gentle, v_a,
		v_b, v_c, v_d, 1.0 / max_p_inv);
	return p;
}
/*
 * Calculate the drop probability.
 * This is being kept for backwards compatibility.
 */
Calculate the drop probability.
This is being kept for backwards compatibility.
Calculate the drop probability . This is being kept for backwards compatibility .
double
REDQueue::calculate_p(double v_ave, double th_max, int gentle, double v_a, 
	double v_b, double v_c, double v_d, double max_p_inv)
{
	double p = calculate_p_new(v_ave, th_max, gentle, v_a,
		v_b, v_c, v_d, 1.0 / max_p_inv);
	return p;
}
double REDQueue :: calculate_p ( double v_ave , double th_max , int gentle , double v_a , double v_b , double v_c , double v_d , double max_p_inv ) { double p = calculate_p_new ( v_ave , th_max , gentle , v_a , v_b , v_c , v_d , 1.0 / max_p_inv ) ; return p ; }
Calculate the drop probability.
Calculate the drop probability .