Changeset 11783:e2f72ce88fed in orange


Ignore:
Timestamp:
12/03/13 16:09:39 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed equality operator for continuous filters.

(fixes #1330)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/filter.cpp

    r11703 r11783  
    195195 
    196196 
    197 #define EQUAL(x,y)  (fabs(x-y) <= y*1e-10) ? 1 : 0 
     197#define EQUAL(x,y)  (fabs(x-y) <= fabs(y)*1e-10) ? 1 : 0 
    198198#define LESS_EQUAL(x,y) (x-y <= y*1e-10) ? 1 : 0 
    199199#define TO_BOOL(x) (x) ? 1 : 0; 
Note: See TracChangeset for help on using the changeset viewer.