Skip to main content
Version: 4.1.0

ProfileFittingStore

Index

Constructors

constructor

  • new ProfileFittingStore(widgetStore: SpectralProfileWidgetStore): ProfileFittingStore
  • Parameters

    • widgetStore: SpectralProfileWidgetStore

    Returns ProfileFittingStore

Properties

components

components: ProfileFittingIndividualStore[]

continuum

continuum: FittingContinuum

detectedComponentN

detectedComponentN: number

enableResidual

enableResidual: boolean

function

function: FittingFunction

hasAutoDetectResult

hasAutoDetectResult: boolean

hasResult

hasResult: boolean

isAutoDetectWithCont

isAutoDetectWithCont: boolean

isAutoDetectWithFitting

isAutoDetectWithFitting: boolean

isCursorSelectingComponent

isCursorSelectingComponent: boolean

isCursorSelectingSlope

isCursorSelectingSlope: boolean

isCursorSelectingYIntercept

isCursorSelectingYIntercept: boolean

lockedSlope

lockedSlope: boolean

lockedYIntercept

lockedYIntercept: boolean

originData

originData: { x: number[]; y: Float32Array | Float64Array }

Type declaration

  • x: number[]
  • y: Float32Array | Float64Array

resultLog

resultLog: string

resultResidual

resultResidual: Float32Array | Float64Array

resultSlope

resultSlope: number

resultSlopeError

resultSlopeError: number

resultYIntercept

resultYIntercept: number

resultYInterceptError

resultYInterceptError: number

selectedIndex

selectedIndex: number

slope

slope: number

yIntercept

yIntercept: number

Accessors

autoDetectResultText

  • get autoDetectResultText(): string
  • Returns string

baseLinePoint2DArray

  • get baseLinePoint2DArray(): Point2D[]
  • Returns Point2D[]

componentPlottingBoxes

  • get componentPlottingBoxes(): LinePlotInsideBoxMarker[]
  • Returns LinePlotInsideBoxMarker[]

componentResultNumber

  • get componentResultNumber(): LinePlotInsideTextMarker[]
  • Returns LinePlotInsideTextMarker[]

fittingData

  • get fittingData(): { x: number[]; y: Float32Array | Float64Array }
  • Returns { x: number[]; y: Float32Array | Float64Array }

    • x: number[]
    • y: Float32Array | Float64Array

individualModelPoint2DArrays

  • get individualModelPoint2DArrays(): Point2D[][]
  • Returns Point2D[][]

modelPoint2DArray

  • get modelPoint2DArray(): Point2D[]
  • Returns Point2D[]

readyToFit

  • get readyToFit(): boolean
  • Returns boolean

residualPoint2DArray

  • get residualPoint2DArray(): Point2D[]
  • Returns Point2D[]

resultString

  • get resultString(): string
  • Returns string

selectedComponent

  • get selectedComponent(): ProfileFittingIndividualStore
  • Returns ProfileFittingIndividualStore

Methods

autoDetect

  • autoDetect(): void
  • Returns void

deleteSelectedComponent

  • deleteSelectedComponent(): void
  • Returns void

fitData

  • fitData(): void
  • Returns void

setComponentByCursor

  • setComponentByCursor(xMin: number, xMax: number, yMin: number, yMax: number): void
  • Parameters

    • xMin: number
    • xMax: number
    • yMin: number
    • yMax: number

    Returns void

setComponents

  • setComponents(length: number, reset?: boolean): void
  • Parameters

    • length: number
    • optionalreset: boolean

    Returns void

setContinuum

  • setContinuum(val: FittingContinuum): void
  • Parameters

    • val: FittingContinuum

    Returns void

setDetectedComponentN

  • setDetectedComponentN(val: number): void
  • Parameters

    • val: number

    Returns void

setEnableResidual

  • setEnableResidual(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setFunction

  • setFunction(val: FittingFunction): void
  • Parameters

    • val: FittingFunction

    Returns void

setHasAutoDetectResult

  • setHasAutoDetectResult(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setHasResult

  • setHasResult(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setIsAutoDetectWithCont

  • setIsAutoDetectWithCont(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setIsAutoDetectWithFitting

  • setIsAutoDetectWithFitting(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setIsCursorSelectingComponentOn

  • setIsCursorSelectingComponentOn(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setIsCursorSelectingSlope

  • setIsCursorSelectingSlope(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setIsCursorSelectingYIntercept

  • setIsCursorSelectingYIntercept(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setLockedSlope

  • setLockedSlope(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setLockedYIntercept

  • setLockedYIntercept(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setOriginData

  • setOriginData(x: number[], y: Float32Array | Float64Array): void
  • Parameters

    • x: number[]
    • y: Float32Array | Float64Array

    Returns void

setResultLog

  • setResultLog(val: string): void
  • Parameters

    • val: string

    Returns void

setResultResidual

  • setResultResidual(val: Float32Array | Float64Array): void
  • Parameters

    • val: Float32Array | Float64Array

    Returns void

setResultSlope

  • setResultSlope(val: number): void
  • Parameters

    • val: number

    Returns void

setResultSlopeError

  • setResultSlopeError(val: number): void
  • Parameters

    • val: number

    Returns void

setResultYIntercept

  • setResultYIntercept(val: number): void
  • Parameters

    • val: number

    Returns void

setResultYInterceptError

  • setResultYInterceptError(val: number): void
  • Parameters

    • val: number

    Returns void

setSelectedIndex

  • setSelectedIndex(val: number): void
  • Parameters

    • val: number

    Returns void

setSlope

  • setSlope(val: number): void
  • Parameters

    • val: number

    Returns void

setYIntercept

  • setYIntercept(val: number): void
  • Parameters

    • val: number

    Returns void