Modification of esfit() function
Posted: Mon Jan 09, 2017 3:59 am
I have found a strange behaviour of esfit() function with multicomponent fitting. It looks that simulation function is called for each spin system separately but the weight coefficient Sys.weight must be treated inside the simulation function. I think that follow construction is used into esfit() function:
I propose to modify the function esfit() to call the simulation in multicomponent manner, if it is not too hard, of course. I.e. using follow calling:
Code: Select all
y=simfunction(Sys{1},Exp,Opt)+simfunction(Sys{2},Exp,Opt)+simfunction(Sys{3},Exp,Opt)+...
Code: Select all
y=simfunction({Sys1,Sys2,...},Exp,Opt)