Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49662
| References | <mailman.4127.1372801460.3114.python-list@python.org> <T2IAt.5266$Jk4.4110@newsfe09.iad> <CAArdDCrts2ypurhe_EDB92X2Vv7H6cL_zwLz+LrKA0KdqXwLgA@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2013-07-02 16:29 -0600 |
| Subject | Re: how to calculate reputation |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4131.1372804228.3114.python-list@python.org> (permalink) |
On Tue, Jul 2, 2013 at 4:19 PM, Surya Kasturi <suryak@ieee.org> wrote: > I think I didnt explain it clearly.. let me make it clear.. > > 1. The database we are using is having BooleanField for it!! so, cant do > anything > 2. I am not looking for sorting algorithms .. just simple math :) It sounds > crazy but let me describe my confusion Nobody has suggested a *sorting* algorithm. > lets have 3 users with > > [null, null, null] > reputation = 0 > > [T, - - ] > rept = 1 > > [T T T] > rept = 3 > > [T T F] > rept = 1 (its jumping from 3 to 1 -->but generally, we observe only decrease > in 1 right?) I'm with you so far. You see the reputation drop by 2 here because you have both removed an up-vote and added a down-vote. Each of these things individually will cause the sum to drop by 1. > [T T F] > rept = 3 (its jumping from 1 to 3) > > These jumpings are common? or my logic is going any wrong? This is the same scenario as the previous one, so I don't understand why you identify the reputation sum as 3 here.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to calculate reputation Surya Kasturi <suryak@ieee.org> - 2013-07-02 23:43 +0200
Re: how to calculate reputation Tobiah <toby@tobiah.org> - 2013-07-02 14:59 -0700
Re: how to calculate reputation Surya Kasturi <suryak@ieee.org> - 2013-07-03 00:19 +0200
Re: how to calculate reputation Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-02 16:29 -0600
Re: how to calculate reputation Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-02 23:27 +0100
Re: how to calculate reputation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 00:18 +0000
Re: how to calculate reputation Chris Angelico <rosuav@gmail.com> - 2013-07-03 10:26 +1000
csiph-web