|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpoker.HandPotential
public class HandPotential
Hand Potential.
Hand Potential is the calculation of the probability
that a hand that is currently behind will be ahead as more
board cards are dealt. Negative Potential (NPOT) is the
probability that given that we are currently ahead, future
cards will put is behind.
Contains the Hand Potential Calculations as described in:
Dealing with Imperfect Information in Poker.
Denis Papp, M.Sc. thesis, 1998.
As well as Darse Billings' crude potential function.
Constructor Summary | |
---|---|
HandPotential()
|
Method Summary | |
---|---|
static double |
CrudePotential1(Card c1,
Card c2,
Hand board)
A crude but fast approximation of PPOT. |
double |
getLastNPot()
obtain the PPot calculated during the last call to npot. |
double |
getLastPPot()
obtain the PPot calculated during the last call to ppot. |
double |
ppot_raw(Card c1,
Card c2,
Hand bd,
boolean full)
Calculate the raw (unweighted) PPot and NPot of a hand. |
double |
ppot(Card c1,
Card c2,
Hand bd,
com.biotools.poker.model.WeightTable w,
boolean full)
Calculate the PPot and NPot of a hand. |
int |
rankHandCached(int i,
int j,
int k,
Hand bd,
int[] cache)
|
int |
rankHandCached(int i,
int j,
int k,
int l,
Hand bd,
int[] cache)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandPotential()
Method Detail |
---|
public double getLastPPot()
public double getLastNPot()
public double ppot(Card c1, Card c2, Hand bd, com.biotools.poker.model.WeightTable w, boolean full)
c1
- the first hole cardc2
- the second hole cardbd
- the board cardsw
- the weight table to usefull
- if true, a full 2-card look ahead will be done (slow)
public static double CrudePotential1(Card c1, Card c2, Hand board)
c1
- the first hole cardc2
- the second hole cardboard
- the board cardspublic int rankHandCached(int i, int j, int k, Hand bd, int[] cache)
public int rankHandCached(int i, int j, int k, int l, Hand bd, int[] cache)
public double ppot_raw(Card c1, Card c2, Hand bd, boolean full)
c1
- the first hole cardc2
- the second hole cardbd
- the board cardsfull
- if true, a full 2-card look ahead will be done (slow)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |