The (x/y) on the tooltip

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

The (x/y) on the tooltip

Postby PeteX » Thu May 24, 2012 1:34 pm

When I hover the mouse cursor over some stat on the HUD, I often see two numbers in parenthesis like (5/10) meaning AFAIU that there were 10 opportunities to do something and 5 was done, i.e. the stat was calculated as (5/10) * 100.0 if it was a percentage figure.

However, on my custom stat I don't see this. I only see the end result, for example 50%.

What determines when PT3 HUD shows the (x/y) on the tooltip? Why doesn't it show the value at times? How does it know which numbers to show? Does it parse the formula somehow? Could I modify my stat somehow to enable the (x/y) values to be shown?
PeteX
 
Posts: 194
Joined: Sat Apr 05, 2008 9:12 am

Re: The (x/y) on the tooltip

Postby kraada » Thu May 24, 2012 1:45 pm

You need to create your stat so that it is formatted exactly like:
( X / Y ) * 100

including the spacing - once you do that, the times and opportunities should display.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: The (x/y) on the tooltip

Postby PeteX » Thu May 24, 2012 2:39 pm

That did it! Excellent, thanks!!!
PeteX
 
Posts: 194
Joined: Sat Apr 05, 2008 9:12 am

Re: The (x/y) on the tooltip

Postby gazavat » Mon Dec 30, 2013 6:08 pm

Average Preflop Allin Equity

(val_p_equity / cnt_p_allin_valid) * 100

I am confused what the x/y popup signifies for this default stat considering the columns used?

5/10 would mean we had 10 cases where hand was allin and thus showdown. Not sure what the 5 would mean?
gazavat
 
Posts: 88
Joined: Sat Feb 05, 2011 2:04 am

Re: The (x/y) on the tooltip

Postby kraada » Mon Dec 30, 2013 6:38 pm

The numerator is the total equity you had in all qualifying hands. The denominator is the number of qualifying hands.

So for example if you had 10% equity in one hand and 60% equity in another it would be (.7 / 2) * 100 or 35% average equity.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: The (x/y) on the tooltip

Postby gazavat » Tue Dec 31, 2013 6:54 am

How does it round for the x/y popup in this stat. I have a case where x/y popup displays 0/2, while PF equity is 39%.
gazavat
 
Posts: 88
Joined: Sat Feb 05, 2011 2:04 am

Re: The (x/y) on the tooltip

Postby kraada » Tue Dec 31, 2013 10:04 am

It likely rounds using the normal rules of math where if it's under .5 it rounds down.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 16 guests

cron
highfalutin