Calculating average times

Before starting a new topic read Moposite's Help and earlier topics. Note: this forum is for Elma problems, not Moposite.

Moderator: Moporators

Post Reply
SectorZero
Kuski
Posts: 31
Joined: 26 Jun 2003, 19:39
Location: Netherlands
Contact:

Calculating average times

Post by SectorZero »

I made a program to calculate average times and average tt, but the average times can differ 1 centisecond if i compare with Balazs' average counter. Now my question is, does he calculate to milliseconds, to get a more exact time, or does he just add 1 centisecond to each time?
Image
User avatar
Serj
Kuski
Posts: 174
Joined: 23 Feb 2003, 14:29
Location: Delft, the Netherlands
Contact:

Post by Serj »

I downloaded your program today. The problem is it doesn't round the time it calculates, it just takes the first 2 decimales. So your counter always gives the same time or a lower one then Balazs' counter, never a higher one.

Example: If I calculate my average on flat track myself it's 17.209
Your counter makes it 17.20 but it should be rounded, so 17.204 becomes 17.20 and 17.205 becomes 17.21

The really strange thing is, that at some levels the difference is 2 hundreds of a second, so that can't be a rounding error.

When I use your counter for my total average it's 50:05,50 while this should be 50:06,05
Image TT: 46:28,27 | OLP: 31:59,52 | Höylä: 11:57,74 | Lost: 58:17,71
SectorZero
Kuski
Posts: 31
Joined: 26 Jun 2003, 19:39
Location: Netherlands
Contact:

Post by SectorZero »

Serj wrote:it just takes the first 2 decimales. So your counter always gives the same time or a lower one then Balazs' counter, never a higher one.
You are right but i can fix this is guess...
Serj wrote:The really strange thing is, that at some levels the difference is 2 hundreds of a second, so that can't be a rounding error.
Have to figure out why this occurs...
Serj wrote:When I use your counter for my total average it's 50:05,50 while this should be 50:06,05
That is logical, because the average=lev1_average+lev2_average etc. On that way, the average tt is much lower.

Anyway, I made some big mistakes, and will fix those this week or something. Tnx for figuring out the problem.
Image
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

well, what's the use anyway ?, we already got program for this.

:arrow: http://www.mxb.dk/upload/Av.exe
And topic :arrow: http://www.moposite.com/mopolauta/viewt ... highlight=
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

fucker, he said that already ok! this program works for multiple nicks in a stat too, or if you haven't completed a level 10 times yet.
sorry for that first word, but such things can make me so angry. :evil:
SectorZero
Kuski
Posts: 31
Joined: 26 Jun 2003, 19:39
Location: Netherlands
Contact:

Post by SectorZero »

And i didn't know that there was a prog that calculated average tt
Image
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

Flat Tracker wrote:fucker, he said that already ok! this program works for multiple nicks in a stat too, or if you haven't completed a level 10 times yet.
sorry for that first word, but such things can make me so angry. :evil:
I had started to like you... :(


btw. if u don't have have 10 times in a level, u simply don't have a avg time in that level.
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

oh, I really thought sector new about that program, when he read the post of Serj talking about the difference between his and Balasz program. And why can't you have average time when you have 9 times instead 0f 10? You CAN calculate the average of 9 numbers seems to me. :?
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

ok, I guess I'm sorry for calling you fucker. It is just that I use that word many times a day, so I my perspective it doesn't sound that bad at all.
Do I have to call you mongo instead? ;)

No serious, it was just a mad reaction, sorry if it was so harsh. :(
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

Flat Tracker wrote:And why can't you have average time when you have 9 times instead 0f 10? You CAN calculate the average of 9 numbers seems to me. :?
U can, but in elma it always have been as u have to have 10 times in a level to have an avg time. No fun with avg time with only one finish.


.....
teajay
Donator duck
Posts: 10043
Joined: 3 Apr 2003, 17:53

Post by teajay »

hm, I guess for the competition it has to be that way, but for the rest I stick with my argument.
User avatar
Quinn
37mins club
Posts: 371
Joined: 18 Apr 2003, 17:20
Location: Queensland, Australia

Post by Quinn »

can some1 download that AV counter again.
TT=37.56.09 /Average TT=39.05.16 / Höylä Mission TT: 11.14.13/ X-Double Trouble WR/
User avatar
Juski
Kuski
Posts: 2200
Joined: 26 Dec 2003, 20:53
Location: irc://irc.ircnet.org/ranks

Post by Juski »

Kopaka wrote:
Flat Tracker wrote:And why can't you have average time when you have 9 times instead 0f 10? You CAN calculate the average of 9 numbers seems to me. :?
U can, but in elma it always have been as u have to have 10 times in a level to have an avg time. No fun with avg time with only one finish.


.....

but then i u wanted an avg total then u would have to finish ALL levels 10 times and every one maybe dont want to do that?
No regrets Image
Are you LOST?
User avatar
SveinR
Moporator
Posts: 5469
Joined: 21 May 2002, 08:05
Location: Oslo, Norway
Contact:

Post by SveinR »

Juski wrote: but then i u wanted an avg total then u would have to finish ALL levels 10 times and every one maybe dont want to do that?
Where should the line be drawn then? How many finishes should be the minimum for getting an average?
.
.
.
.
.
Oh, this choice has already been made for us: 10 ;)
Was it cast for the mass who burn and toil?
Or for the vultures who thirst for blood and oil?
Rules | FAQ
User avatar
chux
Kuski
Posts: 2636
Joined: 27 Aug 2002, 22:59
Location: Elmaville, UK

Post by chux »

Yeah, but that means we're not allowed other peoples times on our states...
I dream of a world where chickens can cross the road without their motives being questioned.
Image
Hi! I'm a signature virus. Copy me into your signature to help me spread.
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

chux wrote:Yeah, but that means we're not allowed other peoples times on our states...
yeah, I come to england and play on your elma, so you can't get avg total..
User avatar
Juski
Kuski
Posts: 2200
Joined: 26 Dec 2003, 20:53
Location: irc://irc.ircnet.org/ranks

Post by Juski »

SveinR wrote:
Juski wrote: but then if u wanted an avg total then u would have to finish ALL levels 10 times and every one maybe dont want to do that?
Where should the line be drawn then? How many finishes should be the minimum for getting an average?
.
.
.
.
.
Oh, this choice has already been made for us: 10 ;)
if u want to send ur average to moposite i understand that u need too have 10 times on all levels, but if u just want to know ur avregae tt for fun then whats the big deal if u dont have a top ten on AH or LP.
No regrets Image
Are you LOST?
User avatar
chux
Kuski
Posts: 2636
Joined: 27 Aug 2002, 22:59
Location: Elmaville, UK

Post by chux »

Eh? I was thinking more like when me and James merge states...his times would stop me from having a whole top 10...
I dream of a world where chickens can cross the road without their motives being questioned.
Image
Hi! I'm a signature virus. Copy me into your signature to help me spread.
User avatar
Juski
Kuski
Posts: 2200
Joined: 26 Dec 2003, 20:53
Location: irc://irc.ircnet.org/ranks

Post by Juski »

that's another point.......SveinR!
No regrets Image
Are you LOST?
User avatar
Kopaka
39mins club
Posts: 6611
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Post by Kopaka »

backup state.dat before merging states, make stats.txt of the merged, copy that to somewhere, and put the old state.dat back again.. ez ?
User avatar
SveinR
Moporator
Posts: 5469
Joined: 21 May 2002, 08:05
Location: Oslo, Norway
Contact:

Post by SveinR »

yeyeye....for your own use, ok.

I made the message board sin of not reading the entire topic (well, I have read it, but it was a while ago).
Was it cast for the mass who burn and toil?
Or for the vultures who thirst for blood and oil?
Rules | FAQ
User avatar
Juski
Kuski
Posts: 2200
Joined: 26 Dec 2003, 20:53
Location: irc://irc.ircnet.org/ranks

Post by Juski »

u r forgiven.

BTW how many posts in 10 minutes in 1 topic is the record in mopolauta?
No regrets Image
Are you LOST?
User avatar
chux
Kuski
Posts: 2636
Joined: 27 Aug 2002, 22:59
Location: Elmaville, UK

Post by chux »

haha, I dont think anyones actually counted...
I dream of a world where chickens can cross the road without their motives being questioned.
Image
Hi! I'm a signature virus. Copy me into your signature to help me spread.
Post Reply