Class allowing to store and manipulate an analysis. An analysis may contain one or more spectra that can be selected based on their units

Constructors

Properties

id: string
label: string
spectra: Spectrum<DoubleArray>[]
spectrumCallback: undefined | SpectrumCallback

Methods

  • Parameters

    • __namedParameters: {
          filter: {
              ids?: string[];
          };
      }
      • filter: {
            ids?: string[];
        }
        • Optional ids?: string[]

    Returns Analysis

  • Return the data object for specific x/y units with possibly some normalization options

    Parameters

    Returns undefined | Spectrum<DoubleArray>

  • Retrieve a xy object

    Parameters

    Returns undefined | {
        x: DoubleArray;
        y: DoubleArray;
    }

  • Add a spectrum in the internal spectra variable

    Parameters

    • variables: SpectrumVariables<DoubleArray>
    • options: Omit<Spectrum<DoubleArray>, "variables"> = {}

    Returns void

  • Returns {
        id: string;
        label: string;
        spectra: any;
    }

    • id: string
    • label: string
    • spectra: any