Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Analysis

Index

Constructors

constructor

  • new Analysis(options?: AnalysisOptions): Analysis

Properties

cache

cache: Record<string, undefined | Spectrum<DoubleArray>>

id

id: string

label

label: string

spectra

spectra: Spectrum<DoubleArray>[]

spectrumCallback

spectrumCallback: undefined | SpectrumCallback

Methods

getNormalizedSpectrum

  • getNormalizedSpectrum(options?: NormalizedOptions): undefined | Spectrum<DoubleArray>
  • Return the data object for specific x/y units with possibly some normalization options

    Parameters

    • options: NormalizedOptions = {}

    Returns undefined | Spectrum<DoubleArray>

getSpectrum

getXLabel

getXY

  • getXY(selector?: SpectrumSelector): undefined | { x: DoubleArray; y: DoubleArray }

getXYSpectrum

getYLabel

pushSpectrum

  • pushSpectrum(variables: SpectrumVariables<DoubleArray>, options?: Omit<Spectrum<DoubleArray>, "variables">): void
  • Add a spectrum in the internal spectra variable

    Parameters

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

    Returns void