Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1999:
[Freeciv-Dev] Re: City sort algorithm
Home

[Freeciv-Dev] Re: City sort algorithm

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Development <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: City sort algorithm
From: Peter Schaefer <schaefer@xxxxxx>
Date: Wed, 13 Oct 1999 11:48:00 +0200

Jarda Benkovsky wrote:
> 
> Mika Korhonen wrote:
> > The simple Freeciv Real City Rate R that implements the specification is
> > obtained by the following formulation
> >
> >         R = log P + log (A/1000)
> >
> > or      R = log P + log A - log 1000
> >
> > where P is the current population and A the age in year 2000 (when Freeciv
> > usually ends, right). And that's how I ordered the cities :-) Hence, a city
> > founded in 1999 and 1000 people gets zero rate.
>

Ehm - this is equivalent to

        r = pow(R) = P*A/1000

and sorting by r = P*A/1000.

And what is the specification again :-)
 
-- 
Peter Schäfer - mailto:schaefer@xxxxxx, schaefer@xxxxxx
Motto of the 3D Designer: "I am a meshed potato, I can do the twist".

[Prev in Thread] Current Thread [Next in Thread]