Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/09 17:05:22 (15 years ago)
Author:
gkronber
Message:

Updated ALGLIB to latest version. #751 (Plugin for for data-modeling with ANN (integrated into CEDMA))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/ALGLIB/normaldistr.cs

    r2445 r2563  
    6868            s = Math.Sign(x);
    6969            x = Math.Abs(x);
    70             if( x<0.5 )
     70            if( (double)(x)<(double)(0.5) )
    7171            {
    7272                xsq = x*x;
     
    8888                return result;
    8989            }
    90             if( x>=10 )
     90            if( (double)(x)>=(double)(10) )
    9191            {
    9292                result = s;
     
    131131            double q = 0;
    132132
    133             if( x<0 )
     133            if( (double)(x)<(double)(0) )
    134134            {
    135135                result = 2-erfc(-x);
    136136                return result;
    137137            }
    138             if( x<0.5 )
     138            if( (double)(x)<(double)(0.5) )
    139139            {
    140140                result = 1.0-erf(x);
    141141                return result;
    142142            }
    143             if( x>=10 )
     143            if( (double)(x)>=(double)(10) )
    144144            {
    145145                result = 0;
     
    269269            expm2 = 0.13533528323661269189;
    270270            s2pi = 2.50662827463100050242;
    271             if( y0<=0 )
     271            if( (double)(y0)<=(double)(0) )
    272272            {
    273273                result = -AP.Math.MaxRealNumber;
    274274                return result;
    275275            }
    276             if( y0>=1 )
     276            if( (double)(y0)>=(double)(1) )
    277277            {
    278278                result = AP.Math.MaxRealNumber;
     
    281281            code = 1;
    282282            y = y0;
    283             if( y>1.0-expm2 )
     283            if( (double)(y)>(double)(1.0-expm2) )
    284284            {
    285285                y = 1.0-y;
    286286                code = 0;
    287287            }
    288             if( y>expm2 )
     288            if( (double)(y)>(double)(expm2) )
    289289            {
    290290                y = y-0.5;
     
    312312            x0 = x-Math.Log(x)/x;
    313313            z = 1.0/x;
    314             if( x<8.0 )
     314            if( (double)(x)<(double)(8.0) )
    315315            {
    316316                p1 = 4.05544892305962419923;
Note: See TracChangeset for help on using the changeset viewer.