<div class="gmail_quote">On Fri, Jun 24, 2011 at 11:25 AM, Robert Kern <span dir="ltr"><<a href="mailto:robert.kern@gmail.com">robert.kern@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, Jun 24, 2011 at 11:13, Christopher Barker <<a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a>> wrote:<br>
> Nathaniel Smith wrote:<br>
><br>
>> If we think that the memory overhead for floating point types is too<br>
>> high, it would be easy to add a special case where maybe(float) used a<br>
>> distinguished NaN instead of a separate boolean.<br>
><br>
> That would Â be pretty cool, though in the past folks have made a good<br>
> argument that even for floats, masks have significant advantages over<br>
> "just using NaN". One might be that you can mask and unmask a value for<br>
> different operations, without losing the value.<br>
<br>
</div>No one is suggesting that the NA approach is universal or replaces<br>
masked arrays. It's better at some things and worse at others. For<br>
many things, usually tables of statistical data, "unmasking" makes no<br>
sense; the missing data is forever missing. For others, particularly<br>
cases where you have gridded data, unmasking and remasking can be<br>
quite useful. They are complementary tools.<br></blockquote><div><br></div><div>It appears to me that views of arrays with masks as in my proposal can support this masking/unmasking semantics without breaking the missing value abstraction. It would be nice for these concepts to fit together well in a single system, anyhow.</div>
<div><br></div><div>-Mark</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
--<br>
Robert Kern<br>
<br>
"I have come to believe that the whole world is an enigma, a harmless<br>
enigma that is made terrible by our own mad attempt to interpret it as<br>
though it had an underlying truth."<br>
  -- Umberto Eco<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br>