Ports Of Call Forum Index Impressum / Contact // data privacy / Datenschutz
 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about the ship statistics

 
Post new topic   Reply to topic    Ports Of Call Forum Index -> XXL General Discussion
View previous topic :: View next topic  
Author Message
Nightmaster
PoC Veteran
Gold Licensee
PoC Veteran<br>Gold Licensee


Joined: 20 Aug 2002
Posts: 88
Location: Germany

PostPosted: Sat Jan 13, 2007 11:23 pm    Post subject: Question about the ship statistics Reply with quote

In the ship statistics view in the office, what is "relative performance"?
At first I thought it is "operating result" divided by the amount of money paid to buy the ship, but it looks like this is not correct.

Thanks!
Back to top
View user's profile Send private message
Bearsie
PoC Regular
Unlicensed
PoC Regular<br>Unlicensed


Joined: 23 Feb 2005
Posts: 1161
Location: North of Kvaerner Yard, Philadelphia, USA

PostPosted: Sun Jan 14, 2007 4:32 am    Post subject: Reply with quote

I have tried to make sense of that number for a while.
the closest I can come to is that it is the relative performance of this ship against the fleet average as a whole.
Nothing else seems to make sense.
_________________
Frohe Reise, Bearsie.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
rdklein
PoC Veteran
Admin
PoC Veteran<br>Admin


Joined: 06 Aug 2002
Posts: 5273
Location: Germany

PostPosted: Sun Jan 14, 2007 8:58 am    Post subject: Reply with quote

here the code for the relative performance:
einshiptotal is the total income a ship generates
ausshiptotal is the total expenses

cnt = 0
totalertrag = 0
For i = 0 To glob_ship_cnt - 1
If glob_ship(i).valid = 1 Then
totalertrag = totalertrag + glob_ship(i).einshiptotal - glob_ship(i).ausshiptotal
cnt = cnt + 1
End If
Next i
Rem
If cnt >= 2 And totalertrag <> 0 Then
perf1 = shipertrag / (totalertrag / cnt) * 100#
perf1 = Abs(perf1)
Rem
If shipertrag < 0 Then perf1 = -perf1
Rem
tx1 = tx1 + Format$(perf1, "0#.0#") + " %" + Chr$(13) + Chr$(10)
tx2 = tx2 + "relative performance:" + Chr$(13) + Chr$(10)
End If
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nightmaster
PoC Veteran
Gold Licensee
PoC Veteran<br>Gold Licensee


Joined: 20 Aug 2002
Posts: 88
Location: Germany

PostPosted: Sun Jan 14, 2007 12:45 pm    Post subject: Reply with quote

OK, thanks for the code. One question to that:
Is shipertrag = einshiptotal - ausshiptotal ?

If thats the case, I think, relative performance is the proportion of the profit of one ship in relation to the average profit of all ships. If thats correct, if you only have one ship, relative performance should always be 100%?

Oh, I think it looks a little bit strange, that the value has a leading zero if the relative performance has only one digit before the decimal point.

And another question:
Would it be possible to have an additional statistics which covers the last 6 months or something like that?
Or, maybe even more usable:
One statistics which covers the whole lifetime of your ships (like it is now, when you do not reset the statistics) and another one which one can reset from time to time?
Back to top
View user's profile Send private message
rdklein
PoC Veteran
Admin
PoC Veteran<br>Admin


Joined: 06 Aug 2002
Posts: 5273
Location: Germany

PostPosted: Sun Jan 14, 2007 2:09 pm    Post subject: Reply with quote

for one ship the relative poerformance is not displayed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nightmaster
PoC Veteran
Gold Licensee
PoC Veteran<br>Gold Licensee


Joined: 20 Aug 2002
Posts: 88
Location: Germany

PostPosted: Sun Jan 14, 2007 2:15 pm    Post subject: Reply with quote

Ah ok, that explains, why I did not remember to see the 100% displayed.
Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ports Of Call Forum Index -> XXL General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group