04-06-2000 03:51 PM
04-07-2000 04:55 PM - last edited on 07-14-2015 11:10 AM by dcarva
Hi John,
the nice trick about the NLLM Vis is that they are pure G, so you can
copy and customize them. Fitting a multivariate function is possible if
you modify the Vi to allow for a multivariate input that you will
flatten into a 1D array to use the available code. In the Function &
Derivative Vi, you will have to provide an extra input that will allow
you to recover the different variables corresponding to a given index in
your flattened 1D array.
HTH,
Xavier.
"John M. Jarvis" wrote:
>
> Hi --
>
> I've am trying to fit a function having two independent variables of the
> form, z = f(x,y) containing a couple of parameters, alpha and beta, to be
> determined by regression. My function looks like:
>
> z = (a + alpha * x) * (1-exp(-beta * y/x))
>
> The fun
ction is also numerically ill-behaved (or at least tempermental 🙂
>
> My only LabView option is the Non-Linear Lev-Mar Fit algorithm as my
> function can't be linearized by any transformation to coerce it to a form
> where a generalized least squares linear fit would work. On the other hand,
> it looks like the Lev-Mar Fit vi can only handle functions having a single
> independent variable.
>
> Does anyone know of any libraries having a routine that can do the job?
>
> Sincerely,
>
> John
>
> P.S. - There is a charting program called Kaleidograph with a L-M fit
> routine that does this nicely but I need a seemless LV interface.
--
________________________________________
Xavier Michalet, Ph D
[edited by moderator to remove private information - 07/14/2015]
04-10-2000 01:48 PM - last edited on 07-14-2015 11:11 AM by dcarva
Hi Xavier --
Thanks for the idea.
It wasn't quite as easy as flattening data and then indexing into it to
recover the independent variables but it wasn't too painful either. Rather
than flatten the data, I left it in two dimensions and modified all of the
three calling routines. Had to fiddle with the indexing a bit but nothing
too esoteric.
Sincerely,
John M. Jarvis, Ph.D.
Xavier Michalet wrote in message
news:38EE593A.F3FCDC43@lbl.gov...
> Hi John,
>
> the nice trick about the NLLM Vis is that they are pure G, so you can
> copy and customize them. Fitting a multivariate function is possible if
> you modify the Vi to allow for a multivariate input that you will
> flatten into a 1D array to use the available code. In the Function &
> Derivative Vi, you will have to provide an extra input that will allow
> you to recover the different variables corresponding to a given index in
> your flattened 1D array.
> HTH,
> Xavier.
>
> "John M. Jarvis" wrote:
> >
> > Hi --
> >
> > I've am trying to fit a function having two independent variables of the
> > form, z = f(x,y) containing a couple of parameters, alpha and beta, to
be
> > determined by regression. My function looks like:
> >
> > z = (a + alpha * x) * (1-exp(-beta * y/x))
> >
> > The function is also numerically ill-behaved (or at least tempermental
🙂
> >
> > My only LabView option is the Non-Linear Lev-Mar Fit algorithm as my
> > function can't be linearized by any transformation to coerce it to a
form
> > where a generalized least squares linear fit would work. On the other
hand,
> > it looks like the Lev-Mar Fit vi can only handle functions having a
single
> > independent variable.
> >
> > Does anyone know of any libraries having a routine that can do the job?
> >
> > Sincerely,
> >
> > John
> >
> > P.S. - There is a charting program called Kaleidograph with a L-M fit
> > routine that does this nicely but I need a seemless LV interface.
>
> --
> ________________________________________
> Xavier Michalet, Ph D
[edited by moderator to remove private information - 07/14/2015]
04-09-2001 11:52 AM
06-18-2002 03:34 PM
03-06-2003 01:27 AM
04-04-2003 12:30 AM
11-04-2003 03:40 PM
01-18-2004 12:35 PM