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

Home » Public Forums » archive » Re: IDL issues: poly_fit.pro.
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: IDL issues: poly_fit.pro. [message #84026 is a reply to message #83952] Tue, 23 April 2013 09:13 Go to previous messageGo to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Sreelakshmi S <sreelakshmi.s86@gmail.com> wrote:

> fit=poly_fit(x,y,fit)
> both x any y are arrays

... and how is the variable fit (3rd parameter) defined?
It will be overridden by the result of poly_fit. Is that what you want?

The documentation says:

; CALLING SEQUENCE:
; Result = POLY_FIT(X, Y, Degree)
;
; INPUTS:
; X: The independent variable vector.
;
; Y: The dependent variable vector, should be same length as x.
;
; Degree: The degree of the polynomial to fit.
;
; OUTPUTS:
; POLY_FIT returns a vector of coefficients with a length of NDegree+1.
;

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Subscripts with greek symbols
Next Topic: Smoothing global land-only data without land/sea boundary errors and then applying a land-mask?

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

Current Time: Thu Oct 09 11:43:44 PDT 2025

Total time taken to generate the page: 0.88158 seconds