PokerSource Java API

org.pokersource.enum
Class SAIE

java.lang.Object
  |
  +--org.pokersource.enum.SAIE

public class SAIE
extends java.lang.Object

Algorithms for computing subjective all-in equity. SAIE is a player's pot equity given particular beliefs about the possible hands of the opponent(s) and assuming no further betting. Beliefs about an opponent's hand distribution are represented by a BeliefVector object which maps each possible opponent hand to the probability of its occurrence.

Author:
Michael Maurer

Constructor Summary
SAIE()
           
 
Method Summary
static void FlopGameSAIE(int gameType, int nmatchups, int noutcomes, BeliefVector[] handDistribs, long board, long dead, double[] ev, java.util.Map matchups)
          Compute the subjective all-in equity of each player based on a belief distribution for each player's hands.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAIE

public SAIE()
Method Detail

FlopGameSAIE

public static void FlopGameSAIE(int gameType,
                                int nmatchups,
                                int noutcomes,
                                BeliefVector[] handDistribs,
                                long board,
                                long dead,
                                double[] ev,
                                java.util.Map matchups)
Compute the subjective all-in equity of each player based on a belief distribution for each player's hands. Typical usage is to fix one player's cards and allow the other players' cards to range over a distribution; however, it is valid for all players to have multiple possible hands.

Parameters:
gameType - One of Enumerate.GAME_HOLDEM, etc.
nmatchups - number of matchups to sample (if zero, full enumeration) [Note: matchups are counted before they are tested for feasibility, that is, whether they share cards. So the total number of matchups that contribute to the SAIE estimate may be less than nmatchups.]
noutcomes - number of boards to sample (if zero, full enumeration)
handDistribs - the hand distribution belief vector for each player
board - bitmask of cards already dealt to board (can be zero)
dead - bitmask of cards that cannot appear in any hand or on the board (can be zero)
ev - output: ev[i] player i's all-in pot equity
matchups - output: map of {HandMatchup, MatchupOutcome} pairs, one for each matchup

main

public static void main(java.lang.String[] args)

PokerSource Java API

PokerSource Home Page - Learn how you can contribute!