Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi everyone! Is there, in MPFITFUN, an option used to count the number of iterations made in fitting procedure and return this number? Is NITER this keyword? Cheers, Christina
On Thursday, January 9, 2014 5:26:46 AM UTC-5, Khris wrote: > Hi everyone! > > Is there, in MPFITFUN, an option used to count the number of iterations made in fitting procedure and return this number? Is NITER this keyword? Yes. From the documentation: "NITER - the number of iterations completed." Pass a named variable and upon return, the number of iterations will be in that variable. Craig
> Yes. From the documentation: > > "NITER - the number of iterations completed." > > > > Pass a named variable and upon return, the number of iterations will be in that variable. > > > > Craig Thank you Mr Markwardt! So, I just have to write NITER=niter in MPFITFUN procedure, then N=MAX(niter) print, N to know the number of iterations? Cheers, Christina
On Thursday, January 9, 2014 9:41:20 AM UTC-5, Khris wrote: > Thank you Mr Markwardt! > > So, I just have to write NITER=niter in MPFITFUN procedure, then > > N=MAX(niter) > print, N > > to know the number of iterations? Well, why don't you try it out? You don't need to use the MAX() function.