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

Home » Public Forums » archive » regress
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: regress [message #65818 is a reply to message #65671] Tue, 17 March 2009 15:02 Go to previous messageGo to previous message
anniebryant@gmail.com is currently offline  anniebryant@gmail.com
Messages: 16
Registered: March 2009
Junior Member
On Mar 17, 3:51 pm, David Fanning <n...@dfanning.com> wrote:
> anniebry...@gmail.com writes:
>> I have two 2D arrays I would like to regress.  Both were created with
>> the variance command and  are intarr(673,274).  Does one of these need
>> to be a vector?  Both need to be a vector? If so, is there a way to
>> convert them from an array to a vector?  I watched someone do this
>> very quickly yesterday, but can not remember how.
>
> Whoops, forgot the DIMENSIONS keyword:
>
>    s = Size(array, /Dimensions)
>    vector = Reform(array, s[0]*s[1])
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

David,

OK, the vector was created no-problem. Thanks.

However, I am still not getting the regression to work.

Here are my two variables:

varimg =

integer mean std dev minimum maximum n_elements
262.89 205.93 0.0000 936.00 (678,237) =
160686

vector=

integer mean std dev minimum maximum n_elements
868.24 763.27 0.0000 9299.0 (160686) =
160686

Here is the expression I have input and the error I get.

IDL> reg = regress(varimg, vector)
% REGRESS: X and Y have incompatible dimensions.
% Error occurred at: REGRESS 126 /Applications/ENVI_IDL/itt/
idl70/lib/regress.pro
% $MAIN$
% Execution halted at: $MAIN$

Any thoughts?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing BIG RGB GEOTIFF
Next Topic: IDL version

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

Current Time: Wed Oct 08 19:59:33 PDT 2025

Total time taken to generate the page: 0.00455 seconds