ml-spectra-processing
    Preparing search index...

    Function getCombinations

    • Generate all combinations of choosing k items from n items.

      Parameters

      • n: number

        Total number of items.

      • k: number

        Number of items to choose.

      Returns number[][]

      Array of combinations, where each combination is an array of indices.