Author Topic: Ranking Formula  (Read 1296 times)

davidpicarelli

  • Newbie
  • *
  • Posts: 4
    • View Profile
Ranking Formula
« on: January 03, 2015, 12:59:14 PM »
Hi guys
I need help to incluse this formula in ttd:

BM*SQRT(N/K)
BM=((N*B)+(NR*R)+(NA*A))/N

K= Ranking position
N= Total Players buyin
B= Buy-in cost
NR= Number of rebuys
R= Rebuy cost
NA= number of addons
A= addon cost

Thanks

David

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Ranking Formula
« Reply #1 on: January 03, 2015, 10:54:02 PM »
Not too hard to translate.  Only differences are:

K [rank] = R
B [buy-in cost] = BC
A [add-ons cost] = AC
R [rebuys cost] = RC

So, you can substitute to get:

BM*SQRT(N/R)

BM=((N*BC)+(NR*RC)+(NA*AC))/N


Of course this won't quite work because you have to use assign to assign a value to a new variable (BM):

assign("BM", ((N*BC)+(NR*RC)+(NA*AC))/N)

BM*SQRT(N/R)


Or shorten it to:

(((N*BC)+(NR*RC)+(NA*AC))/N) * SQRT(N/R)
« Last Edit: January 06, 2015, 11:45:28 AM by Corey Cooper »

davidpicarelli

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Ranking Formula
« Reply #2 on: January 04, 2015, 07:34:27 AM »
Thanks Corey!
Its very simple!

Happy new year!

Best Regards

David