spectrum-generator
    Preparing search index...

    Function generateSparseSpectrum

    • Generates a sparse spectrum containing only x values where at least one peak contributes above the threshold. Unlike generateSpectrum, no dense array is allocated: intervals are computed per peak first, then y is evaluated only for the merged set of required x values.

      Parameters

      Returns DataXY<Float64Array<ArrayBufferLike>>

      Sparse spectrum data with x and y arrays covering only peak regions.