flopToRiverAtLeastOneHitUnionTwoCategories
Two out categories with card-level overlap; sharedAb = intersection size.
flopToRiverAtLeastOneHitUnionTwoCategories(unseenAfterFlop: number, outsA: number, outsB: number, sharedAb: number): number
Import
const poker = require('poker-calculations');
ESM (Node):
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');
When to use
Combine flush outs and straight outs when some cards count toward both (overlap). Union size is outsA + outsB - sharedAb before the two-street hit formula runs.
How to use
const unseen = 47;
const flushOuts = 9;
const straightOuts = 4;
const shared = 1; // one card is both flush and straight out
const p = poker.flopToRiverAtLeastOneHitUnionTwoCategories(
unseen,
flushOuts,
straightOuts,
shared
);
console.log(p);
See also
flopToRiverAtLeastOneHitProbability · flopToRiverAtLeastOneHitUnionThreeCategories