PokerSource Java API
A B C D E F G H I J K L M N O P R S T U V

A

addHandGroupAbsolute(HandGroup, double) - Method in class org.pokersource.enum.BeliefVector
During construction, add a new hand group with its absolute probability of occurrence.
addHandGroupRelative(HandGroup, double) - Method in class org.pokersource.enum.BeliefVector
During construction, add a new hand group with its probability of occurrence relative to the Bayesian probability.
addRemainingAbsolute(double) - Method in class org.pokersource.enum.BeliefVector
During construction, add each hand not yet added with the given absolute probability of occurrence of the entire set of such hands.
addRemainingRelative(double) - Method in class org.pokersource.enum.BeliefVector
During construction, add each hand not yet added with its probability of occurrence relative to its Bayesian probability.
allGroups() - Static method in class org.pokersource.enum.HoldemCanonGroup
 
AllTests - Class in org.pokersource
 
AllTests() - Constructor for class org.pokersource.AllTests
 
AsianStudEval - Class in org.pokersource.eval
 

B

BaseHandGroup - Class in org.pokersource.enum
Implements the HandGroup interface in a way that will work for most poker games.
BaseHandGroup() - Constructor for class org.pokersource.enum.BaseHandGroup
 
BeliefVector - Class in org.pokersource.enum
Represents subjective beliefs about the possible hands held by a player.
BeliefVector(String) - Constructor for class org.pokersource.enum.BeliefVector
Instantiate self from string respresentation.

C

cardMaskString(long, String) - Static method in class org.pokersource.game.Deck
Returns a string like "Ac Td 2h" representing the cards in mask.
cardMaskString(long) - Static method in class org.pokersource.game.Deck
Returns a string like "Ac Td 2h" representing the cards in mask.
cardString(int, int) - Static method in class org.pokersource.game.Deck
Returns a string like "Ac", "Td", or "2h" representing the card.
compareTo(Object) - Method in class org.pokersource.enum.BaseHandGroup
Define default sort order based on string representation.
compareTo(Object) - Method in class org.pokersource.util.IntArray
 
compareTo(Object) - Method in class org.pokersource.util.LongArray
 
createCardIndex(int, int) - Static method in class org.pokersource.game.Deck
Returns a number between 0 and 52 denoting the card index within the deck.
createCardMask(int, int) - Static method in class org.pokersource.game.Deck
Returns a long integer with one bit set corresponding to the card index.
createCardMask(int[], int[]) - Static method in class org.pokersource.game.Deck
Returns a long integer with one bit set for each card present in the ranks/suits arrays.

D

Deck - Class in org.pokersource.game
Some utilities for working with cards and cardmasks in a way that is consistent with all decks used by the poker-eval C library.

E

Enumerate - Class in org.pokersource.enum
Algorithms for enumerating or sampling the outcomes of a poker hand matchup.
equals(Object) - Method in class org.pokersource.util.IntArray
 
equals(Object) - Method in class org.pokersource.util.LongArray
 
EvalHigh(int[], int[]) - Static method in class org.pokersource.eval.AsianStudEval
Evaluate an asian stud deck poker hand for high.
EvalHigh(int[], int[]) - Static method in class org.pokersource.eval.JokerEval
Evaluate a joker deck poker hand for high.
EvalHigh(int[], int[]) - Static method in class org.pokersource.eval.StandardEval
Evaluate a standard deck poker hand for high.
EvalLow(int[], int[]) - Static method in class org.pokersource.eval.JokerEval
Evaluate a joker deck poker hand for low (no qualifier).
EvalLow(int[], int[]) - Static method in class org.pokersource.eval.StandardEval
Evaluate a standard deck poker hand for low (no qualifier).
EvalLow8(int[], int[]) - Static method in class org.pokersource.eval.JokerEval
Evaluate a joker deck poker hand for low (8 qualifier).
EvalLow8(int[], int[]) - Static method in class org.pokersource.eval.StandardEval
Evaluate a standard deck poker hand for low (8 qualifier).

F

FlopGameSAIE(int, int, int, BeliefVector[], long, long, double[], Map, Map) - Static method in class org.pokersource.enum.SAIE
Compute the subjective all-in equity of each player based on a belief distribution for each player's hands.
fromFile(String) - Method in class org.pokersource.enum.HandValuation
Subclasses should implement this according to their own file format.
fromFile(String) - Method in class org.pokersource.enum.HoldemHandOrdering
 
fromStream(InputStream) - Method in class org.pokersource.enum.HandValuation
Subclasses should implement this according to their own file format.
fromStream(InputStream) - Method in class org.pokersource.enum.HoldemHandOrdering
Populates self from an input stream.
fromString(String) - Method in class org.pokersource.enum.BeliefVector
Instantiate self from string respresentation.
fromString(String) - Method in class org.pokersource.enum.HoldemBeliefVector
 

G

GAME_5DRAW - Static variable in class org.pokersource.enum.Enumerate
 
GAME_5DRAW8 - Static variable in class org.pokersource.enum.Enumerate
 
GAME_5DRAWNSQ - Static variable in class org.pokersource.enum.Enumerate
 
GAME_7STUD - Static variable in class org.pokersource.enum.Enumerate
 
GAME_7STUD8 - Static variable in class org.pokersource.enum.Enumerate
 
GAME_7STUDNSQ - Static variable in class org.pokersource.enum.Enumerate
 
GAME_HOLDEM - Static variable in class org.pokersource.enum.Enumerate
 
GAME_HOLDEM8 - Static variable in class org.pokersource.enum.Enumerate
 
GAME_LOWBALL - Static variable in class org.pokersource.enum.Enumerate
 
GAME_LOWBALL27 - Static variable in class org.pokersource.enum.Enumerate
 
GAME_OMAHA - Static variable in class org.pokersource.enum.Enumerate
 
GAME_OMAHA8 - Static variable in class org.pokersource.enum.Enumerate
 
GAME_RAZZ - Static variable in class org.pokersource.enum.Enumerate
 
get(Object) - Method in class org.pokersource.util.ValueSortedMap
 
getBeliefProb(long) - Method in class org.pokersource.enum.BeliefVector
Return the absolute probability that hand will occur, conditioned on the dead cards.
getGroupSpec() - Method in class org.pokersource.enum.BaseHandGroup
 
getGroupSpec() - Method in interface org.pokersource.enum.HandGroup
 
getHands() - Method in class org.pokersource.enum.BaseHandGroup
Returns an array of atomic hands (each encoded as a long).
getHands() - Method in class org.pokersource.enum.BeliefVector
Return an array of bitmasks representing hands with nonzero probability of occurring (conditioned on the dead cards).
getHands() - Method in interface org.pokersource.enum.HandGroup
 
getHandSet() - Method in class org.pokersource.enum.BaseHandGroup
 
getHandSet() - Method in interface org.pokersource.enum.HandGroup
 
getInstance(String, Class) - Static method in class org.pokersource.enum.HoldemHandGroupFactory
Tries to parse groupSpec into a hand group using the gclass constructor.
getInstance(String) - Static method in class org.pokersource.enum.HoldemHandGroupFactory
Tries to parse groupSpec into a hand group using the constructors of the list of known classes.
getValue(HandGroup) - Method in class org.pokersource.enum.HandValuation
Get the numeric value of the hand group.
greater(double) - Method in class org.pokersource.enum.HandValuation
Get all groups whose numeric value is greater than the threshold.
greater(Comparable) - Method in class org.pokersource.util.ValueSortedMap
 
greaterEqual(double) - Method in class org.pokersource.enum.HandValuation
Get all groups whose numeric value is greater than or equal to the threshold.
greaterEqual(Comparable) - Method in class org.pokersource.util.ValueSortedMap
 

H

HandGroup - Interface in org.pokersource.enum
A HandGroup represents a set of poker hands that can be referred to by name.
HandMatchup - Class in org.pokersource.enum
Represents one poker confrontation in which each player holds one specific hand.
HandMatchup(long[]) - Constructor for class org.pokersource.enum.HandMatchup
 
HandValuation - Class in org.pokersource.enum
Maintains a mapping from HandGroup to numeric value; defines methods for sorting and selecting subsets of hand groups based on their numeric value.
HandValuation() - Constructor for class org.pokersource.enum.HandValuation
 
HandValuation(String) - Constructor for class org.pokersource.enum.HandValuation
 
HandValuation(InputStream) - Constructor for class org.pokersource.enum.HandValuation
 
hashCode() - Method in class org.pokersource.util.IntArray
 
hashCode() - Method in class org.pokersource.util.LongArray
 
hasMoreElements() - Method in class org.pokersource.util.NestedLoopEnumeration
 
hasMoreElements() - Method in class org.pokersource.util.NestedLoopSampling
 
HoldemAbdulGroup - Class in org.pokersource.enum
A holdem hand group representing sets of starting hands defined using abdulian notation.
HoldemAbdulGroup(String) - Constructor for class org.pokersource.enum.HoldemAbdulGroup
 
HoldemAtomicGroup - Class in org.pokersource.enum
A holdem hand group representing one exact starting hand such as "AhKh".
HoldemAtomicGroup(String) - Constructor for class org.pokersource.enum.HoldemAtomicGroup
Convert specific starting hand to HoldemAtomicGroup object.
HoldemBeliefVector - Class in org.pokersource.enum
A concrete implementation of BeliefVector for the game of Holdem.
HoldemBeliefVector(String) - Constructor for class org.pokersource.enum.HoldemBeliefVector
Instantiate from a string representation.
HoldemCanonGroup - Class in org.pokersource.enum
A holdem hand group representing sets of starting hands defined using canonical notation: "KK", "AQs", "T9".
HoldemCanonGroup(String) - Constructor for class org.pokersource.enum.HoldemCanonGroup
Convert canonical holdem starting hand notation to a HoldemCanonGroup object.
HoldemHandGroup - Interface in org.pokersource.enum
A marker interface for subclasses of BaseHandGroup meant to encode holdem hands.
HoldemHandGroupFactory - Class in org.pokersource.enum
Creates instances of HoldemHandGroup-implementing objects from their string representations.
HoldemHandOrdering - Class in org.pokersource.enum
Defines an ordering (from 'weakest' to 'strongest') of holdem hand groups.
HoldemHandOrdering(String) - Constructor for class org.pokersource.enum.HoldemHandOrdering
 
HoldemHandOrdering(InputStream) - Constructor for class org.pokersource.enum.HoldemHandOrdering
 
HoldemSMGroup - Class in org.pokersource.enum
A holdem hand group representing sets of starting hands corresponding to Sklansky & Malmuth groups.
HoldemSMGroup(String) - Constructor for class org.pokersource.enum.HoldemSMGroup
 
HoldemThresholdGroup - Class in org.pokersource.enum
A holdem-specific implementation of ThresholdHandGroup.
HoldemThresholdGroup(String) - Constructor for class org.pokersource.enum.HoldemThresholdGroup
 
HoldemUniversalGroup - Class in org.pokersource.enum
A holdem hand group representing every possible starting Holdem hand.
HoldemUniversalGroup(String) - Constructor for class org.pokersource.enum.HoldemUniversalGroup
Return a group containing all possible holdem hands

I

IntArray - Class in org.pokersource.util
A wrapper around an int[] that is suitable for use as a key in a Map.
IntArray(int[]) - Constructor for class org.pokersource.util.IntArray
 
isHandInGroup(long) - Method in class org.pokersource.enum.BaseHandGroup
 
isHandInGroup(long) - Method in interface org.pokersource.enum.HandGroup
 

J

JokerEval - Class in org.pokersource.eval
 

K

keyList() - Method in class org.pokersource.util.ValueSortedMap
 

L

less(double) - Method in class org.pokersource.enum.HandValuation
Get all groups whose numeric value is less than the threshold.
less(Comparable) - Method in class org.pokersource.util.ValueSortedMap
 
lessEqual(double) - Method in class org.pokersource.enum.HandValuation
Get all groups whose numeric value is less than or equal to the threshold.
lessEqual(Comparable) - Method in class org.pokersource.util.ValueSortedMap
 
LongArray - Class in org.pokersource.util
A wrapper around a long[] that is suitable for use as a key in a Map.
LongArray(long[]) - Constructor for class org.pokersource.util.LongArray
 

M

main(String[]) - Static method in class org.pokersource.AllTests
 
main(String[]) - Static method in class org.pokersource.enum.Enumerate
A simple test of Enumerate methods.
main(String[]) - Static method in class org.pokersource.enum.HandValuation
 
main(String[]) - Static method in class org.pokersource.enum.HoldemAbdulGroup
 
main(String[]) - Static method in class org.pokersource.enum.HoldemAtomicGroup
 
main(String[]) - Static method in class org.pokersource.enum.HoldemBeliefVector
 
main(String[]) - Static method in class org.pokersource.enum.HoldemCanonGroup
 
main(String[]) - Static method in class org.pokersource.enum.HoldemHandOrdering
 
main(String[]) - Static method in class org.pokersource.enum.HoldemSMGroup
 
main(String[]) - Static method in class org.pokersource.enum.HoldemUniversalGroup
 
main(String[]) - Static method in class org.pokersource.enum.SAIE
 
main(String[]) - Static method in class org.pokersource.enum.SAIEMain
 
main(String[]) - Static method in class org.pokersource.enum.ThresholdHandGroup
 
main(String[]) - Static method in class org.pokersource.eval.AsianStudEval
A simple demonstration of AsianStudEval methods.
main(String[]) - Static method in class org.pokersource.eval.JokerEval
A simple demonstration of JokerEval methods.
main(String[]) - Static method in class org.pokersource.eval.StandardEval
A simple demonstration of StandardEval methods.
main(String[]) - Static method in class org.pokersource.util.ValueSortedMap
 
matchEV - Variable in class org.pokersource.enum.MatchupOutcome
 
matchProb - Variable in class org.pokersource.enum.MatchupOutcome
 
MatchupOutcome - Class in org.pokersource.enum
Encodes the probability and pot equity for each player of a single matchup, where a matchup is a confrontation between players who each hold a single known hand.
MatchupOutcome(double, double[]) - Constructor for class org.pokersource.enum.MatchupOutcome
 
merge(MatchupOutcome) - Method in class org.pokersource.enum.MatchupOutcome
Merge the results of two outcomes for the same matchup.
myhands - Variable in class org.pokersource.enum.BaseHandGroup
Set of Long objects, each a bitmask for one hand.
myspec - Variable in class org.pokersource.enum.BaseHandGroup
String representation of hand group.

N

NestedLoopEnumeration - Class in org.pokersource.util
An iterator that steps through an abritrary number of nested loops, each starting at zero and ending at its own upper limit.
NestedLoopEnumeration(int[]) - Constructor for class org.pokersource.util.NestedLoopEnumeration
Initializes a nested loop iterator with limits.length dimensions.
NestedLoopSampling - Class in org.pokersource.util
Like NestedLoopEnumeration, but rather than visiting every entry in turn, randomly samples with replacement.
NestedLoopSampling(int[], int) - Constructor for class org.pokersource.util.NestedLoopSampling
Initializes a nested loop sampler with limits.length dimensions.
NestedLoopSampling(int[]) - Constructor for class org.pokersource.util.NestedLoopSampling
 
nextElement() - Method in class org.pokersource.util.NestedLoopEnumeration
Return an integer array listing the next loop indices for each dimension.
nextElement() - Method in class org.pokersource.util.NestedLoopSampling
Return an integer array sampling the next loop indices for each dimension.
numCards(long) - Static method in class org.pokersource.game.Deck
 
numHands() - Method in class org.pokersource.enum.BaseHandGroup
 
numHands() - Method in class org.pokersource.enum.BeliefVector
Returns the number of atomic hands with nonzero probability of occurring (conditioned on the dead cards).
numHands() - Method in interface org.pokersource.enum.HandGroup
 

O

org.pokersource - package org.pokersource
 
org.pokersource.enum - package org.pokersource.enum
Provides classes that enumerate or sample the possible outcomes of a poker hand, define hand distributions, define subjective belief probabilities over hand distributions, and compute subjective pot equity based on these beliefs.
org.pokersource.eval - package org.pokersource.eval
Provides access to the fast poker hand evaluators in the C poker library.
org.pokersource.game - package org.pokersource.game
Provides utilities for encoding poker cards and hands and converting to and from string representations.
org.pokersource.util - package org.pokersource.util
Provides utility classes used by other org.pokersource packages.

P

parseCardMask(String) - Static method in class org.pokersource.game.Deck
Returns a long integer with one bit set for each card present in the input string.
parseRank(String) - Static method in class org.pokersource.game.Deck
 
parseSuit(String) - Static method in class org.pokersource.game.Deck
 
PotEquity(int, int, long[], long, long, double[]) - Static method in class org.pokersource.enum.Enumerate
Compute all-in pot equity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling.
PotEquity(int, int, long[], long, long, double[], int[][][], int[][]) - Static method in class org.pokersource.enum.Enumerate
Compute all-in pot equity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling.
put(Object, Comparable) - Method in class org.pokersource.util.ValueSortedMap
 

R

RANK_2 - Static variable in class org.pokersource.game.Deck
 
RANK_3 - Static variable in class org.pokersource.game.Deck
 
RANK_4 - Static variable in class org.pokersource.game.Deck
 
RANK_5 - Static variable in class org.pokersource.game.Deck
 
RANK_6 - Static variable in class org.pokersource.game.Deck
 
RANK_7 - Static variable in class org.pokersource.game.Deck
 
RANK_8 - Static variable in class org.pokersource.game.Deck
 
RANK_9 - Static variable in class org.pokersource.game.Deck
 
RANK_ACE - Static variable in class org.pokersource.game.Deck
 
RANK_COUNT - Static variable in class org.pokersource.game.Deck
 
RANK_JACK - Static variable in class org.pokersource.game.Deck
 
RANK_JOKER - Static variable in class org.pokersource.game.Deck
 
RANK_KING - Static variable in class org.pokersource.game.Deck
 
RANK_QUEEN - Static variable in class org.pokersource.game.Deck
 
RANK_TEN - Static variable in class org.pokersource.game.Deck
 
RankOrdering - Class in org.pokersource.enum
Represents the relative hand rank order of one hand matchup outcome.
RankOrdering(int[]) - Constructor for class org.pokersource.enum.RankOrdering
 
rankString(int) - Static method in class org.pokersource.game.Deck
 
registerHandValuation(String, HandValuation) - Static method in class org.pokersource.enum.ThresholdHandGroup
Register a new HandValuation that will be referred to as valuationName.

S

SAIE - Class in org.pokersource.enum
Algorithms for computing subjective all-in equity.
SAIEMain - Class in org.pokersource.enum
An executable program that provides access to the SAIE calculator.
setDeadCards(long) - Method in class org.pokersource.enum.BeliefVector
Set the "dead cards", cards that are known not to be available.
setValue(HandGroup, double) - Method in class org.pokersource.enum.HandValuation
Set the numeric value of the hand group.
StandardEval - Class in org.pokersource.eval
 
SUIT_CLUBS - Static variable in class org.pokersource.game.Deck
 
SUIT_COUNT - Static variable in class org.pokersource.game.Deck
 
SUIT_DIAMONDS - Static variable in class org.pokersource.game.Deck
 
SUIT_HEARTS - Static variable in class org.pokersource.game.Deck
 
SUIT_JOKER - Static variable in class org.pokersource.game.Deck
 
SUIT_SPADES - Static variable in class org.pokersource.game.Deck
 
suite() - Static method in class org.pokersource.AllTests
 
suitString(int) - Static method in class org.pokersource.game.Deck
 

T

ThresholdHandGroup - Class in org.pokersource.enum
Given a mapping from hand groups G_i to numeric values, this class allows you to build a new hand group as the union of those G_i whose numeric values are less than or greater than a certain threshold.
ThresholdHandGroup(String) - Constructor for class org.pokersource.enum.ThresholdHandGroup
Create a set of hands corresponding to those whose value compares either less than or greater than a threshold value, where the value of each hand is defined by a HandValuation.
toString() - Method in class org.pokersource.enum.BaseHandGroup
 
toString() - Method in class org.pokersource.enum.BeliefVector
Generate string representation of self; the inverse of fromString().
toString() - Method in interface org.pokersource.enum.HandGroup
 
toString() - Method in class org.pokersource.enum.HandValuation
 
toString() - Method in class org.pokersource.util.IntArray
 
toString() - Method in class org.pokersource.util.LongArray
 
toString() - Method in class org.pokersource.util.ValueSortedMap
 
toStringAtomic() - Method in class org.pokersource.enum.BaseHandGroup
 
toStringAtomic() - Method in class org.pokersource.enum.BeliefVector
Generate a string representation of self that gives probability details for all atomic hands, conditioned on the dead cards.
toStringAtomic() - Method in interface org.pokersource.enum.HandGroup
 

U

universalGroup - Variable in class org.pokersource.enum.BeliefVector
The universe of all possible hands.

V

validate() - Method in class org.pokersource.enum.BeliefVector
After construction, subclasses should call this for a sanity check.
values - Variable in class org.pokersource.util.IntArray
 
values - Variable in class org.pokersource.util.LongArray
 
ValueSortedMap - Class in org.pokersource.util
 
ValueSortedMap() - Constructor for class org.pokersource.util.ValueSortedMap
 

A B C D E F G H I J K L M N O P R S T U V
PokerSource Java API

PokerSource Home Page - Learn how you can contribute!