Searched refs:binomialCoefficient (Results 1 – 1 of 1) sorted by relevance
74 long binomialCoefficient = 0L; in getKCombinationAtIndex() local78 binomialCoefficient = nextBinomialCoefficient; in getKCombinationAtIndex()80 nextBinomialCoefficient = Math.multiplyExact(binomialCoefficient, (candidate + 1)); in getKCombinationAtIndex()89 if (binomialCoefficient <= target) { in getKCombinationAtIndex()92 target -= binomialCoefficient; in getKCombinationAtIndex()97 binomialCoefficient = binomialCoefficient * currentK / candidate; in getKCombinationAtIndex()101 binomialCoefficient = binomialCoefficient * (candidate - currentK) / candidate; in getKCombinationAtIndex()