Re: [ns] Calculating Mean end-to-end delay.

2006-07-18 Thread Dimitris Antonellis
You have to give a different weight in the mean. e.g. mean=(mean*(total_pkts-1) + curr_pkt_delay*1) / total_pkts. Regards Dimitrios Antonellis Message: 1 > Date: Mon, 17 Jul 2006 02:06:07 +0100 > From: "Nicholas Loulloudes" <[EMAIL PROTECTED]> > Subject: [ns] Calculat

[ns] Calculating Mean end-to-end delay.

2006-07-16 Thread Nicholas Loulloudes
Hello, i have created an agent which allows me to record the end-to-end delays of packets arriving at a specific node. What i want to do is to calculate the mean end-to-end delay at specific time intervals and later on output it on a trace file. To calculate the mean end-to-end delay i use the f