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

Home » Public Forums » archive » Re: Negative Variance?
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: Negative Variance? [message #65773 is a reply to message #65771] Thu, 19 March 2009 15:08 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
anniebryant@gmail.com wrote:
> I am using the VARIANCE comand in IDL and am getting negative values.
> The description in the HELP menu for IDL doesn't provide much
> information, but from what I know, I thought variance was either an
> absolute value or a deviation from a squared number, neither of which
> could yield a negative value.
>
> I am looking at the variance for 2 different bands in an AVIRIS
> image. I use the same .pro, just change the band I am looking at.
> The results for Band 1 (lets call it) make sense: all positive
> values. For Band 2, I get a lot of negatives.?! How is this
> possible.
>
> These are the values for Band 1:
>
> integer mean std dev minimum maximum n_elements
> 2633.3 2059.3 0.0000 9367.0 (160686) =
> 160686
>
> These are the values for Band2:
>
> integer mean std dev minimum maximum n_elements
> 1167.5 18269. -32768. 32767. (160686) =
> 160686

I don't see any variance here. The only negative number is the
minimum.

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Make easy and nice your IDL documentation
Next Topic: Span a graph across 2 spaces in a !P.MULTI environment?

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

Current Time: Wed Oct 08 19:21:24 PDT 2025

Total time taken to generate the page: 0.00417 seconds