Class Analysis

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

  • Parameters

    • Optional options: AnalysisOptions

    Returns Analysis

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

  • Parameters

    • Optional options: NormalizedOptions

    Returns Spectrum<DoubleArray>[]

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

    Parameters

    • Optional options: NormalizedOptions

    Returns undefined | Spectrum<DoubleArray>

  • Returns the first spectrum. This method could be improved in the future

    Returns Spectrum<DoubleArray>

  • Returns the xLabel

    Parameters

    • selector: SpectrumSelector

    Returns undefined | string

  • Retrieve a xy object

    Parameters

    • Optional selector: SpectrumSelector

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

  • Retrieve spectra matching selector

    Parameters

    • Optional selector: SpectrumSelector

    Returns Spectrum<DoubleArray>[]

  • Retrieve a Spectrum based on x/y units

    Parameters

    • Optional selector: SpectrumSelector

    Returns undefined | Spectrum<DoubleArray>

  • Returns the yLabel

    Parameters

    • selector: SpectrumSelector

    Returns undefined | string

  • Add a spectrum in the internal spectra variable

    Parameters

    • variables: SpectrumVariables<DoubleArray>
    • Optional options: Omit<Spectrum<DoubleArray>, "variables">

    Returns void

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

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

    • json: any

    Returns Analysis