Skip to main content

normalizedRangeWeightSum

Sum of range weights.

normalizedRangeWeightSum(weights: F64VectorInput): 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

Sum of dense range weights — sanity check before normalizing or feeding subgame solvers.

How to use

const weights = new Float64Array([0.5, 0, 1.2, 0.3]);
console.log(poker.normalizedRangeWeightSum(weights)); // 2.0

See also

materialize-villain-range-after-blockers