<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Assume so, based on your result and that that&#39;s how the median should be calculated. </div><div class="gmail_default" style="font-family:verdana,sans-serif">I&#39;d be surprised if any program out there didn&#39;t calculate it this way. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 20, 2015 at 3:08 PM, jbuzan <span dir="ltr">&lt;<a href="mailto:jbuzan@purdue.edu" target="_blank">jbuzan@purdue.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Alan,<div><br></div><div>Is this how NCL calculates the median?  </div><div>I think the code is in the binaries, because I didn’t see it in the contributed/shea_util.</div><div><br></div><div>-Jonathan</div><div><div class="h5"><div><br></div><div><br><div><blockquote type="cite"><div>On Sep 20, 2015, at 3:00 PM, Alan Brammer &lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt; wrote:</div><br><div><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="verdana, sans-serif">From <a href="https://en.wikipedia.org/wiki/Median" target="_blank">wikipedia</a>.</font></div><div class="gmail_default"><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px"> If there is an even number of observations, then there is no single middle value; the median is then usually defined to be the </span><a href="https://en.wikipedia.org/wiki/Arithmetic_mean" title="Arithmetic mean" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:14px" target="_blank">mean</a><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px"> of the two middle values </span><sup style="line-height:1;font-size:11px;color:rgb(37,37,37);font-family:sans-serif"><a href="https://en.wikipedia.org/wiki/Median#cite_note-StatisticalMedian-1" style="text-decoration:none;color:rgb(11,0,128);background-image:none;white-space:nowrap" target="_blank">[1]</a></sup><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px"> </span><sup style="line-height:1;font-size:11px;color:rgb(37,37,37);font-family:sans-serif"><a href="https://en.wikipedia.org/wiki/Median#cite_note-2" style="text-decoration:none;color:rgb(11,0,128);background-image:none;white-space:nowrap" target="_blank">[2]</a></sup><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px"> (the median of {3, 5, 7, 9} is (5 + 7) / 2 = 6), which corresponds to interpreting the median as the fully </span><a href="https://en.wikipedia.org/wiki/Trimmed_estimator" title="Trimmed estimator" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:14px" target="_blank">trimmed</a><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px"> </span><a href="https://en.wikipedia.org/wiki/Mid-range" title="Mid-range" style="text-decoration:none;color:rgb(11,0,128);background-image:none;font-family:sans-serif;font-size:14px" target="_blank">mid-range</a><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px">. </span><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><br></div><div class="gmail_default"><font color="#252525" face="sans-serif"><span style="font-size:14px"><br></span></font></div><div class="gmail_default"><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px">Alan. </span></div></div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>