normalizedStackFractions
Each stack divided by the sum of stacks (tournament chip share; not Harville ICM).
normalizedStackFractions(stacks: F64VectorInput, returnFormat?: F64ReturnFormat): number[] | Float64Array
See Float64 ICM input.
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
Show chip share of the table (who owns what fraction of total chips). This is raw chip normalization, not ICM dollar equity—use Harville exports when payouts matter.
How to use
const stacks = [12000, 8000, 5000];
const shares = poker.normalizedStackFractions(stacks);
console.log(shares); // [0.48, 0.32, 0.2] — sum to 1
const icm = poker.icmExpectedPayouts(stacks, [5000, 3000, 2000]);
console.log(icm);