On Thu, 5 Apr 2001, Satoshi Ikarashi wrote:
> Hello,
>
> I am using anlalog 4.90beta3. I would like to know why
> "average" counts are always decreased "one".
>
> The result of "Successful requests" and "Average successfull
> requests per day" are always different. I have read FAQ
> (Especially C4) and also ML archives subjected "Successful
> requests & Average successful requests per day" (posted on May
> 23, 2000).
>
> Here is a source code "output.c":
>
> 206 #define GENSUM_RATE(x, m) (((m) < 30 || (x) <= 1)?((unsigned long)UNSET):\
> 207 ((unsigned long)(((double)((x) - 1) * 1440.0) / (double)(m))))
>
> This macro calculates a rate for summary, "(x)" is a number of
> pages or requests and "(m)" is a time distance -- minutes. As
> you see, "(x) - 1" is used to get rates.
>
> I understood how the average was decreased but I do not
> understand why ... Please let me know the reason.
>
Suppose you only have two requests in your logfile, one at 1am and one at
1pm on the same day. Then x = 2, m = 12 hours, but the correct rate is one
request every 12 hours, not 2 requests every 12 hours.
Of course for most logfiles x is large and it doesn't make much difference.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"Your account can only be used for a single internet session at any one
time and for no more than 24 hours in any one day." (NTL terms of use)
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
+------------------------------------------------------------------------