Ticket #2764 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

MD fit: allow fitting of multiple background and single foreground functions

Reported by: Roman Tolchenov Owned by: Roman Tolchenov
Priority: major Milestone: Iteration 28
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description


Change History

comment:1 Changed 10 years ago by Roman Tolchenov

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Roman Tolchenov

(In [10525]) Added MDFitWorkspace, CreateMDFitWorkspace, and UserFunctionMD to assist MD fitting development. re #2764

comment:3 Changed 9 years ago by Roman Tolchenov

(In [10785]) Added CompositeFunctionMD for fitting of multiple MD workspaces. re #2764

comment:4 Changed 9 years ago by Roman Tolchenov

(In [10787]) Trying to fix the build. re #2764

comment:5 Changed 9 years ago by Roman Tolchenov

(In [10788]) Another try. re #2764

comment:6 Changed 9 years ago by Roman Tolchenov

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:7 Changed 9 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester set to Anders Markvardsen

comment:8 Changed 9 years ago by Anders Markvardsen

  • Status changed from verifying to closed

The script below produces good fit:

CreateMDFitWorkspace('ws1','id=x,xmin=0,xmax=10,n=100','x+2*exp(-2*(x-4.6)2)',1) CreateMDFitWorkspace('ws2','id=x,xmin=0,xmax=10,n=100','10-0.5*x+2*exp(-2*(x-4.6)2)',1) GenericFit('ws1',,'composite=CompositeFunctionMD;name=UserFunctionMD,Workspace=ws1,Formula=a+b*x;name=UserFunctionMD,Workspace=ws2,Formula=a+b*x;name=UserFunctionMD,Formula=h*exp(-a*(x-c)2)',Output='res')

comment:9 Changed 9 years ago by Ronald Fowler

Due to wiki formatting in the above test there are some missing symbols:

(1) need to add null string to parameter list as second argument of GenericFit call i.e. GenericFit('ws1','','id=....

(2) need to use ^ symbol in formula for exponentials, e.g. (x-4.6)^2)

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3611

Note: See TracTickets for help on using tickets.