riverCallThresholdDistribution
Return breakeven river call thresholds for candidate bet sizes.
riverCallThresholdDistribution(turnBoard: CardInput, villainRange: SparseRangeSpec | Float64Array, betSizes: F64VectorInput): Float64Array
See Packed card input and SparseRangeSpec where those inputs apply.
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
Use riverCallThresholdDistribution when you need to return breakeven river call thresholds for candidate bet sizes.
How to use
const poker = require('poker-calculations');
const range = new Float64Array(1326);
range.fill(1 / 1326);
const result = poker.riverCallThresholdDistribution(['Ah', 'Kh'], ['Qh', 'Jh', '2c'], range, 0.5);
console.log(result);