ns-allinone-2.35/tcp/tcp.cc
double TcpAgent::decrease_param()
{
	double decrease;
	// OLD:
	// decrease = linear(log(cwnd_), log(low_window_), 0.5, log(high_window_), high_decrease_);
	// NEW (but equivalent):
        decrease = hstcp_.dec1 + log(cwnd_) * hstcp_.dec2;  
	return decrease;
}
/*
 * Calculating the decrease parameter for highspeed TCP.
 */
Calculating the decrease parameter for highspeed TCP.
Calculating the decrease parameter for highspeed TCP .
double TcpAgent::decrease_param()
{
	double decrease;
        decrease = hstcp_.dec1 + log(cwnd_) * hstcp_.dec2;  
	return decrease;
}
double TcpAgent :: decrease_param ( ) { double decrease ; decrease = hstcp_ . dec1 + log ( cwnd_ ) * hstcp_ . dec2 ; return decrease ; }
Calculating the decrease parameter for highspeed TCP.
Calculating the decrease parameter for highspeed TCP .
// OLD: // decrease = linear(log(cwnd_), log(low_window_), 0.5, log(high_window_), high_decrease_); // NEW (but equivalent):