Changeset 4635:f7951d11e8a1 in orange


Ignore:
Timestamp:
05/09/08 23:36:50 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
cdf0347b1269fc0545587d00cef337c2efb39c56
Message:
  • chisqprob used to raise exception if chi square was zero; now it correctly returns 1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/include/stat.hpp

    r4080 r4635  
    775775template<class T> 
    776776T chisqprob(const T &x, const T &df) 
    777 { return gammq(df*0.5, x*0.5); 
     777{ return x > 1e-10 ? gammq(df*0.5, x*0.5) : T(1.0); 
    778778} 
    779779 
Note: See TracChangeset for help on using the changeset viewer.