Skip to main content

rangeBucketWeightsByNotation

Aggregate combo weights into notation buckets such as AKs and QQ.

rangeBucketWeightsByNotation(range: SparseRangeSpec | Float64Array): RangeNotationWeight[]

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 rangeBucketWeightsByNotation when you need to aggregate combo weights into notation buckets such as AKs and QQ.

How to use

const poker = require('poker-calculations');
const range = new Float64Array(1326);
range.fill(1 / 1326);

const result = poker.rangeBucketWeightsByNotation(range, 5);
console.log(result);

See also

materializeVillainRangeAfterBlockers · Sparse range input