comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » SVDFIT Problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: SVDFIT Problems [message #32017 is a reply to message #31937] Tue, 03 September 2002 08:20 Go to previous messageGo to previous message
Chris Torrence is currently offline  Chris Torrence
Messages: 5
Registered: March 2001
Junior Member
Hi Bill,

Actually, the SVDFIT code *does* use THRESH = TOL*wmax. If you look
carefully at the IDL code, around line 249, there is the following line:

small=WHERE(variance LE max(variance)*thresh, cc)

(The variable name "thresh" was an unfortunate choice, and should really
have been "tol".)

Internally, the C code is identical to the Numerical Recipes code, except
for the TOL value, which is 1e-9 for both single and double precision. We
could consider adding a TOL keyword to the SVDFIT function, which would
allow the user to change this default.

Cheers,

Chris
Research Systems, Inc.

"Bill" <wclodius@lanl.gov> wrote in message
news:3D6F97ED.C81C6C00@lanl.gov...
> In my occaisional attempts to use SVDFIT I have had problems in that it
> reports singular solutions when other fitting routines, e.g., REGRESS,
> have had not problems. The obvious source of the problems is that within
> the routine the line
>
> THRESH = 1.0E-9
>
> does not correspond to the definition in Numerical Recipes
>
> THRESH = TOL*wmax
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hello
Next Topic: sec : U Re: having IDL output to another X11 window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:05:06 PDT 2025

Total time taken to generate the page: 0.71879 seconds