common-spectrum
    Preparing search index...

    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

    Index

    Constructors

    Properties

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

    Methods

    • Parameters

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

      Returns Analysis

    • Returns the xLabel

      Parameters

      • selector: SpectrumSelector
        • OptionaldataType?: string | RegExp

          Select based on the data type

        • Optionalindex?: number

          The index of the spectrum in the spectra array

        • Optionallabels?: string

          Allows to specify 2 labels using a string like 'nm vs °C'

        • Optionalmeta?: Record<string, string>

          Select based on the presence of a meta information

        • Optionaltitle?: string | RegExp

          Select based on the title field

        • Optionalunits?: string

          Allows to specify 2 units using a string like 'nm vs °C'

        • Optionalvariables?: string

          Allows to specify X and Y variables using a string like 'c vs d'

        • OptionalxLabel?: string | RegExp

          Filter based on xLabel

        • OptionalxUnits?: string

          Filter based on xUnits

        • OptionalxVariable?: OneLowerCase

          Select a specific X variable by one letter name

          'x'
          
        • OptionalyLabel?: string | RegExp

          Filter based on yLabel

        • OptionalyUnits?: string

          Filter based on yUnits

        • OptionalyVariable?: OneLowerCase

          Select a specific Y variable by one letter name

          'y'
          

      Returns undefined | string

    • Retrieve a xy object

      Parameters

      • selector: SpectrumSelector = {}
        • OptionaldataType?: string | RegExp

          Select based on the data type

        • Optionalindex?: number

          The index of the spectrum in the spectra array

        • Optionallabels?: string

          Allows to specify 2 labels using a string like 'nm vs °C'

        • Optionalmeta?: Record<string, string>

          Select based on the presence of a meta information

        • Optionaltitle?: string | RegExp

          Select based on the title field

        • Optionalunits?: string

          Allows to specify 2 units using a string like 'nm vs °C'

        • Optionalvariables?: string

          Allows to specify X and Y variables using a string like 'c vs d'

        • OptionalxLabel?: string | RegExp

          Filter based on xLabel

        • OptionalxUnits?: string

          Filter based on xUnits

        • OptionalxVariable?: OneLowerCase

          Select a specific X variable by one letter name

          'x'
          
        • OptionalyLabel?: string | RegExp

          Filter based on yLabel

        • OptionalyUnits?: string

          Filter based on yUnits

        • OptionalyVariable?: OneLowerCase

          Select a specific Y variable by one letter name

          'y'
          

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

    • Returns the yLabel

      Parameters

      • selector: SpectrumSelector
        • OptionaldataType?: string | RegExp

          Select based on the data type

        • Optionalindex?: number

          The index of the spectrum in the spectra array

        • Optionallabels?: string

          Allows to specify 2 labels using a string like 'nm vs °C'

        • Optionalmeta?: Record<string, string>

          Select based on the presence of a meta information

        • Optionaltitle?: string | RegExp

          Select based on the title field

        • Optionalunits?: string

          Allows to specify 2 units using a string like 'nm vs °C'

        • Optionalvariables?: string

          Allows to specify X and Y variables using a string like 'c vs d'

        • OptionalxLabel?: string | RegExp

          Filter based on xLabel

        • OptionalxUnits?: string

          Filter based on xUnits

        • OptionalxVariable?: OneLowerCase

          Select a specific X variable by one letter name

          'x'
          
        • OptionalyLabel?: string | RegExp

          Filter based on yLabel

        • OptionalyUnits?: string

          Filter based on yUnits

        • OptionalyVariable?: OneLowerCase

          Select a specific Y variable by one letter name

          'y'
          

      Returns undefined | string

    • Add a spectrum in the internal spectra variable

      Parameters

      • variables: MeasurementXYVariables
      • options: Omit<MeasurementXY, "variables"> = {}

      Returns void

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