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

Home » Public Forums » archive » POLY_FIT gives wrong answer !
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: POLY_FIT gives wrong answer ! [message #20075 is a reply to message #19941] Wed, 10 May 2000 00:00 Go to previous message
Henk Schets is currently offline  Henk Schets
Messages: 4
Registered: May 2000
Junior Member
David Fanning wrote:

> Henk Schets (Henk.Schets@oma.be) writes:
>
>> Maybe all of you already know this, but I didn't and I could not find
>> any documentation about it.
>> The problem : I have two long arrays (x- and y-values) and I made
>> subarrays out of them by using an array as subscript, like
>> x = fltarray(l)
>> y = fltarray(l)
>> indexarr = longarray(l)
>> (you know, the way to sort different arrays together)
>> However, when I do something like out =
>> poly_fit(x[indexarr],y[indexarr]), the outcome is simply wrong ! I know
>> this because other programs gave another solution (all the same).
>> The only way to do it right is by making other arrays like x2 and y2 and
>> doing a poly_fit on it.
>>
>> Is this a known issue ?
>
> I don't know. What is known is that things are not always
> the way they seem to be. I'm guessing this is one of those
> times. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.

Could you be a littlebit more cryptic, please ?

Henk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Arrays: strange feature ?!
Next Topic: Re: help on IDL

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

Current Time: Wed Oct 08 17:55:32 PDT 2025

Total time taken to generate the page: 0.00475 seconds