spectrum-generator
    Preparing search index...

    Class SparseSpectrumGenerator

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    from: number
    interval: number
    nbPoints: number
    peakWidthFct: NumToNumFn | undefined
    shape: Shape1DInstance
    to: number

    Methods

    • Generates a sparse spectrum containing only x values where at least one peak contributes above the threshold. 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

      • peaks: PeakSeries | Peak1D[]

        List of peaks to include.

      • options: SparseSpectrumOptions = {}

        Options for sparse spectrum generation.

      Returns DataXY<Float64Array<ArrayBufferLike>>

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