| Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
| World Community Grid Forums
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 6
|
|
| Author |
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2352 Status: Offline Project Badges:
|
After returning 31 results for SCC1 I wondered if the Points Generated are matching my calculations. When I look at the Points Generated, it says "10,295" now. This number is not a multiple of 7 (1470*7=10290), so some sort of floating point operation has to be involved, isn't it?
----------------------------------------I'm using a tool ('wcgresults') that logs results into a file, columns are tab separated, so that one can easily find the needed numbers. The first result looks like this (should read as one long line): scc1 19.14818063448412 0.8393017053604126 1.0277044773101807 0 23.99452485540153 2505247 x 1485507428 1936591355 1226605650 SCC1_0000000_Bct-A_11387_1 1 2017-01-26T21:22:03 2017-02-05T20:08:17 2017-01-26T20:08:17 5 1 2 E.g. "cut -f6 LOGFILE | grep '^scc1'" will yield the Granted Credit from all SCC1 results.Nicely formatted in six columns, meaning that some are omitted and they are in different order! - it will look like this:
The "My Contribution" page says that I have returned 27 results at the moment. So I need to extract the first 27 positive results from my logfile. (I have collected 31 results for SCC1 at the moment, two of them yielded zero points, two others are too recent to count.) Because the ones with zero points are also there, I need to extract the first 29 results from the logfile, which goes something like this: $ grep '^scc1' LOGFILE | sed 29q | cut -f6 These 29 numbers are 'Granted BOINC Credit', so they have to be multiplied by 7 to get 'Points Generated'. Multiplying this by 7 yields: $ grep '^scc1' LOGFILE | sed 29q | cut -f6 | sed 's/^/7*/' | bc Now add them all together: $ grep '^scc1' LOGFILE | sed 29q | cut -f6 | sed 's/^/7*/; s/$/+\\/; $s/+\\//' | bc That's odd, because My Contribution says "10,295", meaning a difference of 9.5 points. I also tried adding up the "nicely formatted" numbers from the 'Granted' column earlier in this post, yielding: $ awk '{print $5}' | sed 's/^/7*/; s/$/+\\/; $s/+\\//' | bchttps://www.youtube.com/watch?v=h3h--K5928M (The Who - I Can't Explain) Would it help if I'd omit some decimals? Let's try this (keep only one decimal!), first multiply and then truncate: $ grep '^scc1' LOGFILE |sed 29q|cut -f6| sed 's/^/7*/' |bc| sed 's/\(\..\).*/\1/; s/$/+\\/; $s/+\\//' | bcThat's a little closer. Not close enough. Another try, first truncate and then multiply: $ grep '^scc1' LOGFILE | sed 29q | cut -f6 | sed 's/\(\..\).*/\1/; s/^/7*/; s/$/+\\/; $s/+\\//' | bc We have a match! So I think that the numbers from 'Granted BOINC Credit' — like 23.99452485540153 — are being truncated at one decimal — 23.9 — and then multiplied by 7 to gain 'Points Generated'. [Edit 1 times, last edit by adriverhoef at Feb 5, 2017 10:18:58 AM] |
||
|
|
aBowers
Advanced Cruncher Joined: Jun 14, 2006 Post Count: 54 Status: Offline Project Badges:
|
Nice work.
----------------------------------------![]() |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
The title suggested an actual question, to which the answer is... dice.
----------------------------------------![]() That's really counting beans [once upon a time an IT guy at Commerzbank programmed for the Nth fraction of interest to be booked to his private account... since no one sees the Nth fraction he got away with it, and though it was the Nth decimal, on millions of transactions, the sum of the Nth behind quickly became the $th in front of the decimal, until such time that vacation time came around, and as with everything, there's always arousal of suspicion if someone never goes on vacation... he had to make a big payback on return and got a pink slip.]. Fortunately, this is not about money, but if uplinger would do so skimming the truncated difference, he'd make big points without crunching ![]() [Edit 1 times, last edit by Former Member at Feb 15, 2017 10:33:41 AM] |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2352 Status: Offline Project Badges:
|
The title suggested an actual question It was actually a question at first; time passed by while writing and the post grew longer and longer, until I stumbled upon the answer. ![]() |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Did not write "The title suggested an actual question", but wrote "The title suggested an actual question, to which the answer is... dice. cool"... it was a sarcasm ;P)
BTW, your runtime filtering falls over on any larger account. See many results with "to the second exact same runtime in the same stats period". |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
An actual albeit quasi 'on topic', it's hard to keep WCG forum threads not to go off topic, if WCG points are calculated from truncated single result 1 decimal credit, e.g. 1.999 then in the extreme not becoming 14 with normal rounding but 13.3 points, what then is being exported to the 3rd party stats sites thru the 6 hourly user.gz file... the BOINC earned WCG points divided by 7 or the original credit accumulated to 13 or 14 decimal exact? Think to remember the answer notwithstanding alzheimer lite, but for the nitty gritty pickers maybe something to nail down and work up in a detail post **.
** It's not easy to test, more work, for those that have old UD agent points that never were converted back to BOINC cobblestones. |
||
|
|
|