[Freeciv-Dev] Re: City sort algorithm
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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".
|
|