LibreOffice Module sc (master) 1
Variables
op_statistical_helpers.hxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const char MinDecl [] = "#define Min 2.22507e-308\n"
 
const char fBigInvDecl [] ="#define fBigInv 2.22045e-016\n"
 
const char fMachEpsDecl [] ="#define fMachEps 2.22045e-016\n"
 
const char fLogDblMaxDecl [] ="#define fLogDblMax log(1.79769e+308)\n"
 
const char fHalfMachEpsDecl [] ="#define fHalfMachEps 0.5*2.22045e-016\n"
 
const char fMaxGammaArgumentDecl []
 
const char GetValueDecl []
 
const char GetValue []
 
const char fmin_countDecl [] = "double fmin_count(double a, double b, __private int *p);\n"
 
const char fmin_count []
 
const char fmax_countDecl [] = "double fmax_count(double a, double b, __private int *p);\n"
 
const char fmax_count []
 
const char fsum_countDecl [] = "double fsum_count(double a, double b, __private int *p);\n"
 
const char fsum_count []
 
const char GetGammaSeriesDecl []
 
const char GetGammaSeries []
 
const char GetGammaContFractionDecl []
 
const char GetGammaContFraction []
 
const char GetLowRegIGammaDecl []
 
const char GetLowRegIGamma []
 
const char GetGammaDistDecl []
 
const char GetGammaDist []
 
const char GetGammaDistPDFDecl []
 
const char GetGammaDistPDF []
 
const char GetBetaDistDecl []
 
const char GetBetaDist []
 
const char GetFDistDecl []
 
const char GetFDist []
 
const char GetGammaInvValueDecl []
 
const char GetGammaInvValue []
 
const char GetFInvValueDecl []
 
const char GetFInvValue []
 
const char GetBinomDistPMFDecl []
 
const char GetBinomDistPMF []
 
const char lcl_GetBinomDistRangeDecl []
 
const char lcl_GetBinomDistRange []
 
const char GetLogGammaDecl [] = "double GetLogGamma(double fZ);\n"
 
const char GetLogGamma []
 
const char GetChiDistDecl [] = "double GetChiDist(double fX, double fDF);\n"
 
const char GetChiDist []
 
const char GetChiSqDistCDFDecl []
 
const char GetChiSqDistCDF []
 
const char GetChiSqDistPDFDecl []
 
const char GetChiSqDistPDF []
 
const char lcl_IterateInverseBetaInvDecl []
 
const char lcl_IterateInverseBetaInv []
 
const char lcl_IterateInverseChiInvDecl []
 
const char lcl_IterateInverseChiInv []
 
const char lcl_IterateInverseChiSQInvDecl []
 
const char lcl_IterateInverseChiSQInv []
 
const char gaussinvDecl [] = "double gaussinv(double x);\n"
 
const char gaussinv []
 
const char lcl_GetLogGammaHelperDecl []
 
const char lcl_GetLogGammaHelper []
 
const char lcl_GetGammaHelperDecl []
 
const char lcl_GetGammaHelper []
 
const char lcl_getLanczosSumDecl []
 
const char lcl_getLanczosSum []
 
const char GetUpRegIGammaDecl []
 
const char GetUpRegIGamma []
 
const char lcl_HasChangeOfSignDecl []
 
const char lcl_HasChangeOfSign []
 
const char GetTDistDecl [] =" double GetTDist(double T, double fDF);\n"
 
const char GetTDist []
 
const char GetBetaDecl [] =" double GetBeta(double fAlpha, double fBeta);\n"
 
const char GetBeta []
 
const char GetLogBetaDecl []
 
const char GetLogBeta []
 
const char GetBetaDistPDFDecl []
 
const char GetBetaDistPDF []
 
const char lcl_GetBetaHelperContFracDecl []
 
const char lcl_GetBetaHelperContFrac []
 
const char lcl_IterateInverseDecl []
 
const char lcl_IterateInverse []
 
const char phiDecl []
 
const char phi []
 
const char taylorDecl []
 
const char taylor []
 
const char gaussDecl [] = "double gauss(double x);\n"
 
const char gauss []
 

Variable Documentation

◆ fBigInvDecl

const char fBigInvDecl[] ="#define fBigInv 2.22045e-016\n"

◆ fHalfMachEpsDecl

const char fHalfMachEpsDecl[] ="#define fHalfMachEps 0.5*2.22045e-016\n"

◆ fLogDblMaxDecl

const char fLogDblMaxDecl[] ="#define fLogDblMax log(1.79769e+308)\n"

Definition at line 15 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun().

◆ fMachEpsDecl

const char fMachEpsDecl[] ="#define fMachEps 2.22045e-016\n"

◆ fmax_count

const char fmax_count[]
Initial value:
=
"double fmax_count(double a, double b, __private int *p) {\n"
" double result = fmax(a, b);\n"
" bool t = isnan(result);\n"
" (*p) += t?0:1;\n"
" return result;\n"
"}\n"

Definition at line 35 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpMax::BinInlineFun().

◆ fmax_countDecl

const char fmax_countDecl[] = "double fmax_count(double a, double b, __private int *p);\n"

Definition at line 34 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpMax::BinInlineFun().

◆ fMaxGammaArgumentDecl

const char fMaxGammaArgumentDecl[]

◆ fmin_count

const char fmin_count[]
Initial value:
=
"double fmin_count(double a, double b, __private int *p) {\n"
" double result = fmin(a, b);\n"
" bool t = isnan(result);\n"
" (*p) += t?0:1;\n"
" return result;\n"
"}\n"

Definition at line 27 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpMin::BinInlineFun().

◆ fmin_countDecl

const char fmin_countDecl[] = "double fmin_count(double a, double b, __private int *p);\n"

Definition at line 26 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpMin::BinInlineFun().

◆ fsum_count

const char fsum_count[]
Initial value:
=
"double fsum_count(double a, double b, __private int *p) {\n"
" bool t = isnan(a);\n"
" (*p) += t?0:1;\n"
" return t?b:a+b;\n"
"}\n"

Definition at line 43 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpAverage::BinInlineFun().

◆ fsum_countDecl

const char fsum_countDecl[] = "double fsum_count(double a, double b, __private int *p);\n"

Definition at line 42 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpAverage::BinInlineFun().

◆ gauss

const char gauss[]

◆ gaussDecl

const char gaussDecl[] = "double gauss(double x);\n"

◆ gaussinv

const char gaussinv[]

◆ gaussinvDecl

const char gaussinvDecl[] = "double gaussinv(double x);\n"

◆ GetBeta

const char GetBeta[]
Initial value:
=
"double GetBeta(double fAlpha, double fBeta)\n"
"{\n"
" double fA;\n"
" double fB;\n"
" fAlpha>fBeta?(fA = fAlpha,fB = fBeta):(fA = fBeta,fB = fAlpha);\n"
" double fAB = fA + fB;\n"
" if (fAB < fMaxGammaArgument)\n"
" return tgamma(fA)/tgamma(fAB)*tgamma(fB);\n"
" double fgm = 5.524680040776729583740234375;\n"
" double fLanczos = lcl_getLanczosSum(fA)*lcl_getLanczosSum(fB)\n"
" /lcl_getLanczosSum(fAB);\n"
" fLanczos *= sqrt(((fAB + fgm)/(fA + fgm))/(fB + fgm));\n"
" return fLanczos * pow(exp(1.0),(-fA*log1p(fB/(fA + fgm)))"
" - fB*log1p(fA/(fB + fgm)) - fgm);\n"
"}\n"

Definition at line 1078 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFdist::BinInlineFun(), sc::opencl::OpTDist::BinInlineFun(), sc::opencl::OpTInv::BinInlineFun(), sc::opencl::OpTTest::BinInlineFun(), sc::opencl::OpBinomdist::BinInlineFun(), sc::opencl::OpBetainv::BinInlineFun(), sc::opencl::OpFInv::BinInlineFun(), sc::opencl::OpFTest::BinInlineFun(), sc::opencl::OpB::BinInlineFun(), and sc::opencl::OpBetaDist::BinInlineFun().

◆ GetBetaDecl

const char GetBetaDecl[] =" double GetBeta(double fAlpha, double fBeta);\n"

◆ GetBetaDist

const char GetBetaDist[]

◆ GetBetaDistDecl

const char GetBetaDistDecl[]

◆ GetBetaDistPDF

const char GetBetaDistPDF[]

◆ GetBetaDistPDFDecl

const char GetBetaDistPDFDecl[]

◆ GetBinomDistPMF

const char GetBinomDistPMF[]
Initial value:
=
"double GetBinomDistPMF(double x, double n, double p)\n"
"{\n"
" double q = (0.5 - p) + 0.5;\n"
" double fFactor = pow(q, n);\n"
" if (fFactor <= Min)\n"
" {\n"
" fFactor = pow(p, n);\n"
" if (fFactor <= Min)\n"
" return GetBetaDistPDF(p, x + 1.0, n - x + 1.0)/(n + 1.0);\n"
" else\n"
" {\n"
" uint max = (uint)(n - x);\n"
" for (uint i = 0; i < max && fFactor > 0.0; ++i)\n"
" fFactor *= (n - i)/(double)(i + 1)*q/p;\n"
" return fFactor;\n"
" }\n"
" }\n"
" else\n"
" {\n"
" uint max = (uint)x;\n"
" for (uint i = 0; i < max && fFactor > 0.0; ++i)\n"
" fFactor *= (n - i)/(double)(i + 1)*p/q;\n"
" return fFactor;\n"
" }\n"
"}\n"

Definition at line 325 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBinomdist::BinInlineFun(), and sc::opencl::OpB::BinInlineFun().

◆ GetBinomDistPMFDecl

const char GetBinomDistPMFDecl[]
Initial value:
=
"double GetBinomDistPMF(double x, double n, double p);"

Definition at line 323 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBinomdist::BinInlineFun(), and sc::opencl::OpB::BinInlineFun().

◆ GetChiDist

const char GetChiDist[]
Initial value:
=
"double GetChiDist(double fX, double fDF)\n"
"{\n"
" if (fX <= 0.0)\n"
" return 1.0;\n"
" else\n"
" return GetUpRegIGamma( fDF/2.0, fX/2.0);\n"
"}\n"

Definition at line 388 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiDist::BinInlineFun(), and sc::opencl::OpChiInv::BinInlineFun().

◆ GetChiDistDecl

const char GetChiDistDecl[] = "double GetChiDist(double fX, double fDF);\n"

◆ GetChiSqDistCDF

const char GetChiSqDistCDF[]
Initial value:
=
"double GetChiSqDistCDF(double fX, double fDF)\n"
"{\n"
" if (fX <= 0.0)\n"
" return 0.0;"
" else\n"
" return GetLowRegIGamma( fDF/2.0, fX/2.0);\n"
"}\n"

Definition at line 399 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun(), and sc::opencl::OpChiSqInv::BinInlineFun().

◆ GetChiSqDistCDFDecl

const char GetChiSqDistCDFDecl[]
Initial value:
=
"double GetChiSqDistCDF(double fX, double fDF);\n"

Definition at line 397 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun(), and sc::opencl::OpChiSqInv::BinInlineFun().

◆ GetChiSqDistPDF

const char GetChiSqDistPDF[]

Definition at line 410 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun().

◆ GetChiSqDistPDFDecl

const char GetChiSqDistPDFDecl[]
Initial value:
=
"double GetChiSqDistPDF(double fX, double fDF);\n"

Definition at line 408 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun().

◆ GetFDist

const char GetFDist[]
Initial value:
=
"double GetFDist(double x, double fF1, double fF2)\n"
"{\n"
" double arg = fF2/(fF2+fF1*x);\n"
" double alpha = fF2/2.0;\n"
" double beta = fF1/2.0;\n"
" return (GetBetaDist(arg, alpha, beta));\n"
"}\n"

Definition at line 244 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFdist::BinInlineFun(), and sc::opencl::OpFTest::BinInlineFun().

◆ GetFDistDecl

const char GetFDistDecl[]
Initial value:
=
"double GetFDist(double x, double fF1, double fF2);\n"

Definition at line 242 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFdist::BinInlineFun(), and sc::opencl::OpFTest::BinInlineFun().

◆ GetFInvValue

const char GetFInvValue[]

Definition at line 272 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFInv::BinInlineFun().

◆ GetFInvValueDecl

const char GetFInvValueDecl[]
Initial value:
= "double GetFInvValue(double fF1,double fF2"
",double fX1 );"

Definition at line 270 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFInv::BinInlineFun().

◆ GetGammaContFraction

const char GetGammaContFraction[]

◆ GetGammaContFractionDecl

const char GetGammaContFractionDecl[]

◆ GetGammaDist

const char GetGammaDist[]
Initial value:
=
"double GetGammaDist( double fX, double fAlpha, double fLambda )\n"
"{\n"
" if (fX <= 0.0)\n"
" return 0.0;\n"
" else\n"
" return GetLowRegIGamma( fAlpha, fX / fLambda);\n"
"}\n"

Definition at line 134 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun().

◆ GetGammaDistDecl

const char GetGammaDistDecl[]
Initial value:
= "double GetGammaDist( double fX, double "
"fAlpha, double fLambda );\n"

Definition at line 132 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun().

◆ GetGammaDistPDF

const char GetGammaDistPDF[]

Definition at line 144 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun().

◆ GetGammaDistPDFDecl

const char GetGammaDistPDFDecl[]
Initial value:
= "double GetGammaDistPDF( double fX"
", double fAlpha, double fLambda );\n"

Definition at line 142 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun().

◆ GetGammaInvValue

const char GetGammaInvValue[]
Initial value:
=
"double GetGammaInvValue(double fAlpha,double fBeta,double fX1 )\n"
"{\n"
" if (fX1 <= 0.0)\n"
" return 0.0;\n"
" else\n"
" {\n"
" double fX=fX1/fBeta;\n"
" double fLnFactor = fAlpha * log(fX) - fX - lgamma(fAlpha);\n"
" double fFactor = exp(fLnFactor);\n"
" if (fX>fAlpha+1.0)\n"
" return 1.0 - fFactor * GetGammaContFraction(fAlpha,fX);\n"
" else\n"
" return fFactor * GetGammaSeries(fAlpha,fX);\n"
" }\n"
"}\n"

Definition at line 254 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaInv::BinInlineFun().

◆ GetGammaInvValueDecl

const char GetGammaInvValueDecl[]
Initial value:
= "double"
" GetGammaInvValue(double fAlpha,double fBeta,double fX1 );\n"

Definition at line 252 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpGammaInv::BinInlineFun().

◆ GetGammaSeries

const char GetGammaSeries[]
Initial value:
=
"double GetGammaSeries( double fA, double fX )\n"
"{\n"
" double fDenomfactor = fA;\n"
" double fSummand = 1.0/fA;\n"
" double fSum = fSummand;\n"
" int nCount=1;\n"
" do\n"
" {\n"
" fDenomfactor = fDenomfactor + 1.0;\n"
" fSummand = fSummand * fX/fDenomfactor;\n"
" fSum = fSum + fSummand;\n"
" nCount = nCount+1;\n"
" } while ( fSummand/fSum > fHalfMachEps && nCount<=10000);\n"
" if (nCount>10000)\n"
" {\n"
" }\n"
" return fSum;\n"
"}\n"

Definition at line 51 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiDist::BinInlineFun(), sc::opencl::OpChiSqDist::BinInlineFun(), sc::opencl::OpChiSqInv::BinInlineFun(), sc::opencl::OpChiInv::BinInlineFun(), sc::opencl::OpPoisson::BinInlineFun(), sc::opencl::OpGammaDist::BinInlineFun(), and sc::opencl::OpGammaInv::BinInlineFun().

◆ GetGammaSeriesDecl

const char GetGammaSeriesDecl[]

◆ GetLogBeta

const char GetLogBeta[]
Initial value:
=
"double GetLogBeta(double fAlpha, double fBeta)\n"
"{\n"
" double fA;\n"
" double fB;\n"
" fAlpha>fBeta?(fA = fAlpha,fB = fBeta):(fA = fBeta,fB = fAlpha);\n"
" double fgm = 5.524680040776729583740234375;\n"
" double fLanczos = lcl_getLanczosSum(fA)*lcl_getLanczosSum(fB)\n"
" /lcl_getLanczosSum(fA + fB);\n"
" double fResult= -fA *log1p(fB/(fA + fgm))"
"-fB *log1p(fA/(fB + fgm))-fgm;\n"
" fResult += log(fLanczos)+0.5*(log(fA + fB + fgm) - log(fA + fgm)\n"
" - log(fB + fgm));\n"
" return fResult;\n"
"}\n"

Definition at line 1098 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpFdist::BinInlineFun(), sc::opencl::OpTDist::BinInlineFun(), sc::opencl::OpTInv::BinInlineFun(), sc::opencl::OpTTest::BinInlineFun(), sc::opencl::OpBinomdist::BinInlineFun(), sc::opencl::OpBetainv::BinInlineFun(), sc::opencl::OpFInv::BinInlineFun(), sc::opencl::OpFTest::BinInlineFun(), sc::opencl::OpB::BinInlineFun(), and sc::opencl::OpBetaDist::BinInlineFun().

◆ GetLogBetaDecl

const char GetLogBetaDecl[]

◆ GetLogGamma

const char GetLogGamma[]
Initial value:
=
"double GetLogGamma(double fZ)\n"
"{\n"
" if (fZ >= fMaxGammaArgument)\n"
" return lcl_GetLogGammaHelper(fZ);\n"
" if (fZ >= 1.0)\n"
" return log(lcl_GetGammaHelper(fZ));\n"
" if (fZ >= 0.5)\n"
" return log( lcl_GetGammaHelper(fZ+1) / fZ);\n"
" return lcl_GetLogGammaHelper(fZ+2) - log(fZ+1) - log(fZ);\n"
"}\n"

Definition at line 375 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ GetLogGammaDecl

const char GetLogGammaDecl[] = "double GetLogGamma(double fZ);\n"

Definition at line 374 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ GetLowRegIGamma

const char GetLowRegIGamma[]
Initial value:
=
"double GetLowRegIGamma( double fA, double fX )\n"
"{\n"
" double fLnFactor = fA * log(fX) - fX - lgamma(fA);\n"
" double fFactor = exp(fLnFactor);\n"
" if (fX>fA+1.0) \n"
" return 1.0 - fFactor * GetGammaContFraction(fA,fX);\n"
" else\n"
" return fFactor * GetGammaSeries(fA,fX);\n"
"}\n"

Definition at line 122 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun(), sc::opencl::OpChiSqInv::BinInlineFun(), and sc::opencl::OpGammaDist::BinInlineFun().

◆ GetLowRegIGammaDecl

const char GetLowRegIGammaDecl[]
Initial value:
= "double GetLowRegIGamma( double "
"fA, double fX );\n"

Definition at line 120 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqDist::BinInlineFun(), sc::opencl::OpChiSqInv::BinInlineFun(), and sc::opencl::OpGammaDist::BinInlineFun().

◆ GetTDist

const char GetTDist[]
Initial value:
=
"double GetTDist(double T, double fDF)\n"
"{\n"
" return 0.5 * GetBetaDist(fDF/(fDF+T*T),fDF/2.0, 0.5);\n"
"}\n"

Definition at line 1071 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTDist::BinInlineFun(), sc::opencl::OpTInv::BinInlineFun(), and sc::opencl::OpTTest::BinInlineFun().

◆ GetTDistDecl

const char GetTDistDecl[] =" double GetTDist(double T, double fDF);\n"

◆ GetUpRegIGamma

const char GetUpRegIGamma[]
Initial value:
=
"double GetUpRegIGamma( double fA, double fX )\n"
"{\n"
" double fLnFactor= fA*log(fX)-fX-lgamma(fA);\n"
" double fFactor = exp(fLnFactor); \n"
" if (fX>fA+1.0) \n"
" return fFactor * GetGammaContFraction(fA,fX);\n"
" else \n"
" return 1.0 -fFactor * GetGammaSeries(fA,fX);\n"
"}\n"

Definition at line 1051 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiDist::BinInlineFun(), sc::opencl::OpChiInv::BinInlineFun(), and sc::opencl::OpPoisson::BinInlineFun().

◆ GetUpRegIGammaDecl

const char GetUpRegIGammaDecl[]
Initial value:
=
" double GetUpRegIGamma( double fA, double fX ) ;\n"

Definition at line 1049 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiDist::BinInlineFun(), sc::opencl::OpChiInv::BinInlineFun(), and sc::opencl::OpPoisson::BinInlineFun().

◆ GetValue

const char GetValue[]
Initial value:
=
"double GetValue( double x,double fp,double fDF )\n"
"{\n"
" return fp - 2 * GetTDist(x, fDF);\n"
"}\n"

Definition at line 21 of file op_statistical_helpers.hxx.

Referenced by ScBitMaskCompressedArray< A, D >::AndValue(), sc::opencl::OpTInv::BinInlineFun(), ScDrawShell::ExecDrawFunc(), ScTabViewShell::ExecDrawOpt(), ScTabViewShell::ExecSearch(), ScCellShell::Execute(), ScModule::Execute(), ScDocShell::Execute(), ScDrawTextObjectBar::Execute(), ScEditShell::Execute(), ScTabViewShell::Execute(), ScFormatShell::ExecuteAlignment(), ScEditShell::ExecuteAttr(), ScCellShell::ExecuteCursor(), ScCellShell::ExecuteCursorSel(), ScCellShell::ExecuteEdit(), ScDrawTextObjectBar::ExecuteExtra(), ScCellShell::ExecuteMove(), ScFormatShell::ExecuteNumFormat(), ScTabViewShell::ExecuteObject(), ScCellShell::ExecutePage(), ScTabViewShell::ExecuteSave(), ScFormatShell::ExecuteStyle(), ScTabViewShell::ExecuteTable(), XclExpCellAlign::FillFromItemSet(), FuInsertChart::FuInsertChart(), FuInsertGraphic::FuInsertGraphic(), ScPatternAttr::GetCellOrientation(), ScDocumentPool::GetPresentation(), ScAutoFormatFieldObj::getPropertyValue(), ScStyleObj::getPropertyValue_Impl(), ScPatternAttr::GetRotateVal(), ScMergeFlagAttr::HasAutoFilter(), ScMergeFlagAttr::IsHorOverlapped(), ScMergeFlagAttr::IsOverlapped(), ScMergeFlagAttr::IsScenario(), ScMergeFlagAttr::IsVerOverlapped(), sc::sidebar::AlignmentPropertyPanel::NotifyItemUpdate(), ScBitMaskCompressedArray< A, D >::OrValue(), ScPatternAttr::PutInPool(), ScInterpreter::ScConvertOOo(), and XclImpAutoFilterData::SetCellAttribs().

◆ GetValueDecl

const char GetValueDecl[]
Initial value:
=
"double GetValue( double x,double fp,double fDF );\n"

Definition at line 19 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTInv::BinInlineFun().

◆ lcl_GetBetaHelperContFrac

const char lcl_GetBetaHelperContFrac[]

◆ lcl_GetBetaHelperContFracDecl

const char lcl_GetBetaHelperContFracDecl[]

◆ lcl_GetBinomDistRange

const char lcl_GetBinomDistRange[]
Initial value:
=
"double lcl_GetBinomDistRange(double n, double xs, double xe,\n"
" double fFactor, double p, double q)\n"
"{\n"
" uint i;\n"
" double fSum;\n"
" uint nXs = (uint)xs;\n"
" for (i = 1; i <= nXs && fFactor > 0.0; ++i)\n"
" fFactor *= (n - i + 1)/(double)(i)*p/q;\n"
" fSum = fFactor;\n"
" uint nXe =(uint)xe;\n"
" for (i = nXs + 1; i <= nXe && fFactor > 0.0; ++i)\n"
" {\n"
" fFactor *= (n - i + 1)/(double)(i)*p/q;\n"
" fSum += fFactor;\n"
" }\n"
" return (fSum > 1.0) ? 1.0 : fSum;\n"
"}\n"

Definition at line 355 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBinomdist::BinInlineFun(), and sc::opencl::OpB::BinInlineFun().

◆ lcl_GetBinomDistRangeDecl

const char lcl_GetBinomDistRangeDecl[]
Initial value:
=
"double lcl_GetBinomDistRange(double n, \n"
"double xs, double xe, double fFactor, double p, double q);"

Definition at line 352 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBinomdist::BinInlineFun().

◆ lcl_GetGammaHelper

const char lcl_GetGammaHelper[]
Initial value:
=
"static double lcl_GetGammaHelper(double fZ)\n"
"{\n"
" double fGamma = lcl_getLanczosSum(fZ);\n"
" double fg = 6.024680040776729583740234375;\n"
" double fZgHelp = fZ + fg - 0.5;\n"
" double fHalfpower = pow( fZgHelp, fZ/2 - 0.25);\n"
" fGamma *= fHalfpower;\n"
" fGamma = fGamma/exp(fZgHelp);\n"
" fGamma *= fHalfpower;\n"
" fGamma = 120.4;\n"
" if (fZ <= 20.0 && fZ == (int)fZ)\n"
" {\n"
" fGamma = (int)(fGamma+0.5);\n"
" }\n"
" return fGamma;\n"
"}\n"

Definition at line 908 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ lcl_GetGammaHelperDecl

const char lcl_GetGammaHelperDecl[]
Initial value:
=
"static double lcl_GetGammaHelper(double fZ);\n"

Definition at line 906 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ lcl_getLanczosSum

const char lcl_getLanczosSum[]

◆ lcl_getLanczosSumDecl

const char lcl_getLanczosSumDecl[]

◆ lcl_GetLogGammaHelper

const char lcl_GetLogGammaHelper[]
Initial value:
=
"static double lcl_GetLogGammaHelper(double fZ)\n"
"{\n"
" double fg = 6.024680040776729583740234375;\n"
" double fZgHelp = fZ + fg - 0.5;\n"
" return log( lcl_getLanczosSum(fZ)) + (fZ-0.5) * log(fZgHelp) - fZgHelp;\n"
"}\n"

Definition at line 899 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ lcl_GetLogGammaHelperDecl

const char lcl_GetLogGammaHelperDecl[]
Initial value:
=
"static double lcl_GetLogGammaHelper(double fZ);\n"

Definition at line 897 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun().

◆ lcl_HasChangeOfSign

const char lcl_HasChangeOfSign[]
Initial value:
=
"static inline bool lcl_HasChangeOfSign( double u, double w )\n"
"{\n"
" return (u < 0.0 && w > 0.0) || (u > 0.0 && w < 0.0);\n"
"}\n"

Definition at line 1064 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTInv::BinInlineFun(), sc::opencl::OpChiSqInv::BinInlineFun(), sc::opencl::OpChiInv::BinInlineFun(), and sc::opencl::OpBetainv::BinInlineFun().

◆ lcl_HasChangeOfSignDecl

const char lcl_HasChangeOfSignDecl[]
Initial value:
=
"static inline bool lcl_HasChangeOfSign( double u, double w );\n"

Definition at line 1062 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTInv::BinInlineFun(), sc::opencl::OpChiSqInv::BinInlineFun(), sc::opencl::OpChiInv::BinInlineFun(), and sc::opencl::OpBetainv::BinInlineFun().

◆ lcl_IterateInverse

const char lcl_IterateInverse[]

Definition at line 1220 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTInv::BinInlineFun().

◆ lcl_IterateInverseBetaInv

const char lcl_IterateInverseBetaInv[]

Definition at line 450 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBetainv::BinInlineFun().

◆ lcl_IterateInverseBetaInvDecl

const char lcl_IterateInverseBetaInvDecl[]
Initial value:
=
"static double lcl_IterateInverseBetaInv(double fp, double fAlpha, \n"
" double fBeta, double fAx, double fBx, bool *rConvError );\n"

Definition at line 447 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpBetainv::BinInlineFun().

◆ lcl_IterateInverseChiInv

const char lcl_IterateInverseChiInv[]

Definition at line 547 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiInv::BinInlineFun().

◆ lcl_IterateInverseChiInvDecl

const char lcl_IterateInverseChiInvDecl[]
Initial value:
=
"static double lcl_IterateInverseChiInv"
"(double fp, double fdf, double fAx, double fBx, bool *rConvError);\n"

Definition at line 544 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiInv::BinInlineFun().

◆ lcl_IterateInverseChiSQInv

const char lcl_IterateInverseChiSQInv[]

Definition at line 644 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqInv::BinInlineFun().

◆ lcl_IterateInverseChiSQInvDecl

const char lcl_IterateInverseChiSQInvDecl[]
Initial value:
=
"static double lcl_IterateInverseChiSQInv( double fp, double fdf, \n"
" double fAx, double fBx, bool *rConvError );\n"

Definition at line 641 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpChiSqInv::BinInlineFun().

◆ lcl_IterateInverseDecl

const char lcl_IterateInverseDecl[]
Initial value:
=
"double lcl_IterateInverse("
"double fAx, double fBx, bool* rConvError,double fp,double fDF );\n"

Definition at line 1217 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpTInv::BinInlineFun().

◆ MinDecl

const char MinDecl[] = "#define Min 2.22507e-308\n"

◆ phi

const char phi[]
Initial value:
=
"double phi(double x)\n"
"{\n"
" return 0.39894228040143268 * exp(-(x * x) / 2.0);\n"
"}\n"

Definition at line 1314 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpZTest::BinInlineFun(), and sc::opencl::OpGauss::BinInlineFun().

◆ phiDecl

const char phiDecl[]
Initial value:
=
"double phi(double x);\n"

Definition at line 1312 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpZTest::BinInlineFun(), and sc::opencl::OpGauss::BinInlineFun().

◆ taylor

const char taylor[]
Initial value:
=
"double taylor(double* pPolynom, uint nMax, double x)\n"
"{\n"
" double nVal = pPolynom[nMax];\n"
" for (short i = nMax-1; i >= 0; i--)\n"
" {\n"
" nVal = pPolynom[i] + (nVal * x);\n"
" }\n"
" return nVal;\n"
"}"

Definition at line 1321 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpZTest::BinInlineFun(), and sc::opencl::OpGauss::BinInlineFun().

◆ taylorDecl

const char taylorDecl[]
Initial value:
=
"double taylor(double* pPolynom, uint nMax, double x);\n"

Definition at line 1319 of file op_statistical_helpers.hxx.

Referenced by sc::opencl::OpZTest::BinInlineFun(), and sc::opencl::OpGauss::BinInlineFun().