by pLatonet » Fri Jan 23, 2009 4:43 am
First i try to find the latest position of every player on specific tournament (by sql statement):
Select position, id_player from tourney_holdem_hand_player_statistics where id_tourney = (Select id_tourney from tourney_holdem_summary where tourney_no = 'tournamentnumber')
order by date_played desc, position asc limit (count of players)
This list looks like:
position | id_player
0 | 1122
1 | 1123
3 | 1128
4 | 1384
...
(count of players)
Then i want the stats (vpip and pfr) of the players:
Select (sum((case when(tourney_holdem_hand_player_statistics.flg_vpip)then 1 else 0 end))),(sum((case when(tourney_holdem_hand_player_statistics.cnt_p_raise = 1)then 1 else 0 end))), count(id_player)
FROM tourney_holdem_hand_player_statistics Where id_player = theplayer
This give me:
Counts played | counts preflopraises | count hands
231 | 189 | 12313 for example
in c# i calculate it VPIP: counts played / count hands & PFR : counts preflopraises/count hands
I don't know for sure if PFR is accurate, but of vpip i am sure.
If you are wondering why i want this in c#, it's because i wan't it to use in an offline icm calculator.
But i conclude that the players vpip and pfr per blind change too much, and that the average is not accurate enough..