\(\renewcommand\AA{\unicode{x212B}}\)

IqtFitSimultaneous v1

Summary

Fits data files (*_iqt) generated by I(Q, t) simultaneously.

See Also

QENSFitSimultaneous

Properties

Name

Direction

Type

Default

Description

Function

InOut

Function

Mandatory

Parameters defining the fitting function and its initial values

InputWorkspace

Input

Workspace

Mandatory

Name of the input Workspace

IgnoreInvalidData

Input

boolean

False

Flag to ignore infinities, NaNs and data with zero errors.

DomainType

Input

string

Simple

The type of function domain to use: Simple, Sequential, or Parallel. Allowed values: [‘Simple’, ‘Sequential’, ‘Parallel’]

EvaluationType

Input

string

CentrePoint

The way the function is evaluated on histogram data sets. If value is “CentrePoint” then function is evaluated at centre of each bin. If it is “Histogram” then function is integrated within the bin and the integrals returned. Allowed values: [‘CentrePoint’, ‘Histogram’]

StepSizeMethod

Input

string

Default

The way the step size is calculated for numerical derivatives. See the section about step sizes in the Fit algorithm documentation to understand the difference between “Default” and “Sqrt epsilon”. Allowed values: [‘Default’, ‘Sqrt epsilon’]

PeakRadius

Input

number

0

A value of the peak radius the peak functions should use. A peak radius defines an interval on the x axis around the centre of the peak where its values are calculated. Values outside the interval are not calculated and assumed zeros.Numerically the radius is a whole number of peak widths (FWHM) that fit into the interval on each side from the centre. The default value of 0 means the whole x axis.

Ties

Input

string

Math expressions defining ties between parameters of the fitting function.

Constraints

Input

string

List of constraints

MaxIterations

Input

number

500

Stop after this number of iterations if a good fit is not found

Minimizer

Input

string

Levenberg-Marquardt

Minimizer to use for fitting. Allowed values: [‘BFGS’, ‘Conjugate gradient (Fletcher-Reeves imp.)’, ‘Conjugate gradient (Polak-Ribiere imp.)’, ‘Damped GaussNewton’, ‘FABADA’, ‘Levenberg-Marquardt’, ‘Levenberg-MarquardtMD’, ‘Simplex’, ‘SteepestDescent’, ‘Trust Region’]

CalcErrors

Input

boolean

False

Set to true to calcuate errors when output isn’t created (default is false).

ExtractMembers

Input

boolean

False

If true, then each member of the fit will be extracted, into their own workspace. These workspaces will have a histogram for each spectrum (Q-value) and will be grouped.

ConvolveMembers

Input

boolean

False

If true members of any Convolution are output convolved with corresponding resolution

OutputCompositeMembers

Input

boolean

False

If true and CreateOutput is true then the value of each member of a Composite Function is also output.

ResultXAxisUnit

Input

string

MomentumTransfer

The unit to assign to the X Axis of the result workspace, defaults to MomentumTransfer. Allowed values: [‘AtomicDistance’, ‘Degrees’, ‘DeltaE’, ‘DeltaE_inFrequency’, ‘DeltaE_inWavenumber’, ‘dSpacing’, ‘dSpacingPerpendicular’, ‘Empty’, ‘Energy’, ‘Energy_inWavenumber’, ‘Label’, ‘Momentum’, ‘MomentumTransfer’, ‘Phi’, ‘QSquared’, ‘SpinEchoLength’, ‘SpinEchoTime’, ‘Temperature’, ‘Time’, ‘TOF’, ‘Wavelength’, ‘’]

OutputWorkspace

Output

WorkspaceGroup

Mandatory

The output result workspace(s)

OutputParameterWorkspace

Output

TableWorkspace

The output parameter workspace

OutputWorkspaceGroup

Output

WorkspaceGroup

The output group workspace

OutputFitStatus

Input

boolean

True

Flag to output fit status information, which consists of the fit OutputStatus and the OutputChiSquared

CostFunction

InOut

string

Least squares

The cost function to be used for the fit, default is Least squares. Allowed values: [‘Least squares’, ‘Poisson’, ‘Rwp’, ‘Unweighted least squares’]

Description

Sequentially fits an *_iqt file generated by Iqt.

Workflow

../_images/QENSFitSimultaneous-v1_wkflw.svg

Usage

Example - Running IqtFitSimultaneous on an reduced workspace.

#Load in iqt data
input_ws = Load(Filename='iris26176_graphite002_iqt.nxs')
function = r'name=LinearBackground,A0=0.027668,A1=0,ties=(A1=0);' \
             'name=UserFunction,Formula=Intensity*exp(-(x/Tau)^Beta),Intensity=0.972332,Tau=0.0247558,Beta=1;' \
             'ties=(f1.Intensity=1-f0.A0)'

#run IqtFitSimultaneous
result, params, fit_group = IqtFitSimultaneous(Function=function, InputWorkspace=input_ws,
                                               WorkspaceIndex=0, StartX=0, EndX=0.2)

Categories: AlgorithmIndex | Workflow\MIDAS

Source

C++ header: IqtFit.h

C++ source: IqtFit.cpp