next_bit_permutation: Next value to iterate (in lexicographical order) over all bit...

View source: R/RcppExports.R

next_bit_permutationR Documentation

Next value to iterate (in lexicographical order) over all bit permutaions having l bits set to 1. Example sequence (2 bits): 0011, 0101, 0110, 1001, 1010, 1100. Source: https://stackoverflow.com/questions/1851134/generate-all-binary-strings-of-length-n-with-k-bits-set

Description

Next value to iterate (in lexicographical order) over all bit permutaions having l bits set to 1. Example sequence (2 bits): 0011, 0101, 0110, 1001, 1010, 1100. Source: https://stackoverflow.com/questions/1851134/generate-all-binary-strings-of-length-n-with-k-bits-set

Usage

next_bit_permutation(v)

mosum documentation built on Oct. 22, 2022, 5:05 p.m.