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

Home » Public Forums » archive » Re: efficient kernel or masking algorithm ? UPDATE
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: efficient kernel or masking algorithm ? UPDATE [message #23915 is a reply to message #23913] Mon, 26 February 2001 02:21 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
>> interested in this method which is very fast. It is based on the crafty
>> formula for variance:
>> variance = (sum of the squares)/n + (square of the sums)/n*n
>
> Righto. I knew I was fishing for something like this. Except I think you
mean:
>
> (population) variance = (sum of the squares)/n - (square of the sums)/n*n
>
> Luckily, that's how you've coded it too. Sample variance (=population
> variance*n/(n-1)) is of course the more common case in science (as opposed
to
> gambling).

>> ; POPULATION_ESTIMATE: return the population estimate of variance, not the
>> sample variance


Sigh - you are right of course, but this was just a misunderstanding.
Setting the Keyword above returns an *estimate* of the population from which
the input sample is assumed to have some from, is more commonly referred to
as SAMPLE variance. The default is the variance of the array, which is
usually coined population variance. I agree that until I take up gambling
the former should be the default!! Although I know what I'm doing,
personally I find these single name terms very ambiguous, as you can see!!!
Shame I never read my comments.........

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Input/output Errors
Next Topic: contour_plus using Coyote Graphics System (CGS)

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

Current Time: Fri Oct 10 19:14:15 PDT 2025

Total time taken to generate the page: 0.85399 seconds