datafit() should be upgraded: data weights, G() vectorization, parameters shape, etc
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
datafit() does not allow to fit some weighted data. There is no way to provide a vector of weights related to the Z columns.
Expected additional syntax:
[p,err] = datafit([iprint,] G [,DG],Z [,Wz] [,W],[contr],p0,[algo],[df0,[mem]],[work],[stop],['in'])
^^^^^
The existing weights W are not related to data but to multiple fitting criteria.
OTHER INFORMATION:
------------------
I have implemented it. To be pushed and reviewed.