ml-spectra-processing
    Preparing search index...

    Function getCombinationsIterator

    • Generate all combinations of choosing k items from n items as an iterator. Useful for large combination sets to avoid storing all combinations in memory.

      Parameters

      • n: number

        Total number of items.

      • k: number

        Number of items to choose.

      Returns Generator<number[], void, undefined>

      Each combination as an array of indices.