ml-spectra-processing
    Preparing search index...

    Function matrixApplyNumericalEncoding

    • Numerically encodes the strings in the matrix with an encoding dictionary.

      Parameters

      • matrixInitial: (string | number)[][]

        original matrix before encoding.

      • dictionary: Record<string, number>

        dictionary against which to do the encoding.

      Returns number[][]

      encoded matrix.