[ncl-talk] dim_median_n

Dennis Shea shea at ucar.edu
Sun Sep 20 20:35:44 MDT 2015


[1] Yes the code that computes the median is in a .o (binary file.

[2] As noted by AB ... the method used is the standard. (eg: check R).



On Sun, Sep 20, 2015 at 2:55 PM, Alan Brammer <abrammer at albany.edu> wrote:
> Assume so, based on your result and that that's how the median should be
> calculated.
> I'd be surprised if any program out there didn't calculate it this way.
>
>
> On Sun, Sep 20, 2015 at 3:08 PM, jbuzan <jbuzan at purdue.edu> wrote:
>>
>> Hi Alan,
>>
>> Is this how NCL calculates the median?
>> I think the code is in the binaries, because I didn’t see it in the
>> contributed/shea_util.
>>
>> -Jonathan
>>
>>
>> On Sep 20, 2015, at 3:00 PM, Alan Brammer <abrammer at albany.edu> wrote:
>>
>> From wikipedia.
>>  If there is an even number of observations, then there is no single
>> middle value; the median is then usually defined to be the mean of the two
>> middle values [1] [2] (the median of {3, 5, 7, 9} is (5 + 7) / 2 = 6), which
>> corresponds to interpreting the median as the fully trimmed mid-range.
>>
>>
>> Alan.
>>
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list