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
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