View previous topic :: View next topic |
Author |
Message |
Nightmaster PoC Veteran Gold Licensee

Joined: 20 Aug 2002 Posts: 88 Location: Germany
|
Posted: Sat Jan 13, 2007 11:23 pm Post subject: Question about the ship statistics |
|
|
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 |
|
 |
Bearsie PoC Regular Unlicensed

Joined: 23 Feb 2005 Posts: 1161 Location: North of Kvaerner Yard, Philadelphia, USA
|
Posted: Sun Jan 14, 2007 4:32 am Post subject: |
|
|
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 |
|
 |
rdklein PoC Veteran Admin

Joined: 06 Aug 2002 Posts: 5301 Location: Germany
|
Posted: Sun Jan 14, 2007 8:58 am Post subject: |
|
|
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 |
|
 |
Nightmaster PoC Veteran Gold Licensee

Joined: 20 Aug 2002 Posts: 88 Location: Germany
|
Posted: Sun Jan 14, 2007 12:45 pm Post subject: |
|
|
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 |
|
 |
rdklein PoC Veteran Admin

Joined: 06 Aug 2002 Posts: 5301 Location: Germany
|
Posted: Sun Jan 14, 2007 2:09 pm Post subject: |
|
|
for one ship the relative poerformance is not displayed. |
|
Back to top |
|
 |
Nightmaster PoC Veteran Gold Licensee

Joined: 20 Aug 2002 Posts: 88 Location: Germany
|
Posted: Sun Jan 14, 2007 2:15 pm Post subject: |
|
|
Ah ok, that explains, why I did not remember to see the 100% displayed.
Thanks! |
|
Back to top |
|
 |
|