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

Home » Public Forums » archive » fit through zero
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: fit through zero [message #52771 is a reply to message #52714] Thu, 01 March 2007 01:03 Go to previous message
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Reimar Bauer wrote:
> Hi all
>
> I like to use a fit function which I can tell please go to 0,0
>
> How can I do that with e.g. poly_fit or did you know an equivalent routine?
>
> cheers
> Reimar
>
>
Hello Reimar,

since you asked about poly_fit I assume that you want to fit a
polynomial. It would be easy if poly_fit offers a keyword to flag
certain degrees of the polynomial which then would be omitted from the
fit. Since this is not the case I suggest to use svdfit with a user
defined function. A polynomial without the constant term, i.e.
y=ax+bx^2+cx^3... might be O.K.

Note that svdfit uses a polynomial as well if no user-defined function
is specified. However, the polynomial degrees cannot be flagged either.
Since sdvfit is just a wrapper for the hardcoded nr__svdfit this feature
can only be added by the ITT folks.

with kind regards,

Bringfried

------------------------------------------------------------ --------------------
Dr. Bringfried Stecklum
Thueringer Landessternwarte Tautenburg
Sternwarte 5
D-07778 Tautenburg, Germany
Phone: +49-36427-863-54
FAX: +49-36427-863-29
------------------------------------------------------------ --------------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL Menus to Japanese Language
Next Topic: Improving a piece of code with arrays and for-loops

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

Current Time: Fri Oct 10 03:18:23 PDT 2025

Total time taken to generate the page: 0.64109 seconds