Ticket #2764 (closed: fixed)
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: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