diff options
author | yiming ju <yiming@multicorewareinc.com> | 2013-11-08 13:19:10 +0800 |
---|---|---|
committer | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-11-14 14:09:45 -0600 |
commit | 374f670aea4c2581c1e813c39571819fecdff4f4 (patch) | |
tree | ef139275cfb7cadb8d2539e322859ff341d10ffc /sc/source/core/opencl/opinlinefun_statistical.cxx | |
parent | a6ec887150d07ededcc2c333d60237581b28442f (diff) |
GPU Calc: implemented CHISQINV
AMLOEXT-148 FIX
Change-Id: I2f41abf89b8714e854efde85b88c2c2998d6da1a
Refacotring: convert fmax&fmin to max&min
Signed-off-by: haochen <haochen@multicorewareinc.com>
Signed-off-by: I-Jui (Ray) Sung <ray@multicorewareinc.com>
Diffstat (limited to 'sc/source/core/opencl/opinlinefun_statistical.cxx')
-rw-r--r-- | sc/source/core/opencl/opinlinefun_statistical.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/opencl/opinlinefun_statistical.cxx b/sc/source/core/opencl/opinlinefun_statistical.cxx index f9d357995f62..b97dd11c7d98 100644 --- a/sc/source/core/opencl/opinlinefun_statistical.cxx +++ b/sc/source/core/opencl/opinlinefun_statistical.cxx @@ -628,17 +628,17 @@ std::string lcl_IterateInverseChiSQInv = " double fYEps = 1.0E-307;\n" " double fXEps = fMachEps;\n" -" if(!(fAx < fBx))\n" -" {\n" -" //print error\n" -" }\n" -" double fAy = fp - GetChiSqDistCDF(fAx, fdf);\n" -" double fBy = fp - GetChiSqDistCDF(fBx, fdf);\n" -" double fTemp;\n" -" unsigned short nCount;\n" -" for (nCount = 0; nCount < 1000 && !lcl_HasChangeOfSign(fAy,fBy);" +" if(!(fAx < fBx))\n" +" {\n" +" //print error\n" +" }\n" +" double fAy = fp - GetChiSqDistCDF(fAx, fdf);\n" +" double fBy = fp - GetChiSqDistCDF(fBx, fdf);\n" +" double fTemp;\n" +" unsigned short nCount;\n" +" for (nCount = 0; nCount < 1000 && !lcl_HasChangeOfSign(fAy,fBy);" " nCount++)\n" -" {\n" +" {\n" " if (fabs(fAy) <= fabs(fBy))\n" " {\n" " fTemp = fAx;\n" |