You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Benson Margulies <bi...@gmail.com> on 2009/12/22 18:17:02 UTC
floating equality
We've got binarySearch that search for doubles and floats without an
epsilon. Does this bother sufficiently to change it?
Re: floating equality
Posted by Benson Margulies <bi...@gmail.com>.
We've got things like FloatArrayList, which implement a binary search,
which does equality.
I can suppress them for the float/double cases.
And don't ask me about boolean today.
On Tue, Dec 22, 2009 at 12:37 PM, Sean Owen <sr...@gmail.com> wrote:
> Yes, is this exact-equality search even used? kill it if not.
> I'd not even add your variant unless there's a need.
>
> On Tue, Dec 22, 2009 at 5:17 PM, Benson Margulies <bi...@gmail.com> wrote:
>> We've got binarySearch that search for doubles and floats without an
>> epsilon. Does this bother sufficiently to change it?
>>
>
Re: floating equality
Posted by Sean Owen <sr...@gmail.com>.
Yes, is this exact-equality search even used? kill it if not.
I'd not even add your variant unless there's a need.
On Tue, Dec 22, 2009 at 5:17 PM, Benson Margulies <bi...@gmail.com> wrote:
> We've got binarySearch that search for doubles and floats without an
> epsilon. Does this bother sufficiently to change it?
>