LibreOffice Module sc (master)  1
Macros | Variables
opinlinefun_statistical.cxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SC_OPENCL_OPINLINFUN_statistical
 

Variables

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

Macro Definition Documentation

#define SC_OPENCL_OPINLINFUN_statistical

Definition at line 11 of file opinlinefun_statistical.cxx.

Variable Documentation

std::string F_PIDecl ="#define F_PI 3.1415926\n"
std::string fBigInvDecl ="#define fBigInv 2.22045e-016\n"
std::string fHalfMachEpsDecl ="#define fHalfMachEps 0.5*2.22045e-016\n"
std::string fLogDblMaxDecl ="#define fLogDblMax log(1.79769e+308)\n"

Definition at line 16 of file opinlinefun_statistical.cxx.

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

std::string fMachEpsDecl ="#define fMachEps 2.22045e-016\n"
std::string fMaxGammaArgumentDecl
std::string gauss
std::string gaussDecl = "double gauss(double x);\n"
std::string gaussinv
std::string gaussinvDecl = "double gaussinv(double x);\n"

Definition at line 717 of file opinlinefun_statistical.cxx.

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

std::string 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)*pow(tgamma(fAB),-1.0)*tgamma(fB);\n"
" double fgm = 5.524680040776729583740234375;\n"
" double fLanczos = lcl_getLanczosSum(fA)*lcl_getLanczosSum(fB)\n"
" *pow(lcl_getLanczosSum(fAB),-1.0);\n"
" fLanczos *= sqrt(((fAB + fgm)*pow(fA + fgm,-1.0))*pow(fB + fgm,-1.0));\n"
" return fLanczos * pow(exp(1.0),(-fA*log1p(fB*pow(fA + fgm,-1.0)))"
" - fB*log1p(fA*pow(fB + fgm,-1.0)) - fgm);\n"
"}\n"

Definition at line 1059 of file opinlinefun_statistical.cxx.

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

std::string GetBetaDecl =" double GetBeta(double fAlpha, double fBeta);\n"
std::string GetBetaDist
std::string GetBetaDistDecl
std::string GetBetaDistPDF
std::string GetBetaDistPDFDecl
std::string 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)*pow((n + 1.0),-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)*pow((i + 1),-1.0)*q*pow(p,-1.0);\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)*pow((i + 1),-1.0)*p*pow(q,-1.0);\n"
" return fFactor;\n"
" }\n"
"}\n"

Definition at line 303 of file opinlinefun_statistical.cxx.

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

std::string GetBinomDistPMFDecl
Initial value:
=
"double GetBinomDistPMF(double x, double n, double p);"

Definition at line 301 of file opinlinefun_statistical.cxx.

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

std::string 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*pow(2.0,-1.0), fX*pow(2.0,-1.0));\n"
"}\n"

Definition at line 366 of file opinlinefun_statistical.cxx.

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

std::string GetChiDistDecl = "double GetChiDist(double fX, double fDF);\n"
std::string GetChiSqDistCDF
Initial value:
=
"double GetChiSqDistCDF(double fX, double fDF)\n"
"{\n"
" if (fX <= 0.0)\n"
" return 0.0;"
" else\n"
" return GetLowRegIGamma( fDF*pow(2.0,-1.0), fX*pow(2.0,-1.0));\n"
"}\n"

Definition at line 377 of file opinlinefun_statistical.cxx.

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

std::string GetChiSqDistCDFDecl
Initial value:
=
"double GetChiSqDistCDF(double fX, double fDF);\n"

Definition at line 375 of file opinlinefun_statistical.cxx.

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

std::string GetChiSqDistPDF
std::string GetChiSqDistPDFDecl
Initial value:
=
"double GetChiSqDistPDF(double fX, double fDF);\n"

Definition at line 386 of file opinlinefun_statistical.cxx.

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

std::string GetFDist
Initial value:
=
"double GetFDist(double x, double fF1, double fF2)\n"
"{\n"
" double arg = fF2*pow((fF2+fF1*x),-1.0);\n"
" double alpha = fF2*pow(2.0,-1.0);\n"
" double beta = fF1*pow(2.0,-1.0);\n"
" return (GetBetaDist(arg, alpha, beta));\n"
"}\n"

Definition at line 222 of file opinlinefun_statistical.cxx.

Referenced by sc::opencl::OpFdist::BinInlineFun(), sc::opencl::OpFTest::BinInlineFun(), ScInterpreter::ScFDist(), ScInterpreter::ScFDist_LT(), and ScInterpreter::ScFTest().

std::string GetFDistDecl
Initial value:
=
"double GetFDist(double x, double fF1, double fF2);\n"

Definition at line 220 of file opinlinefun_statistical.cxx.

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

std::string GetFInvValue

Definition at line 250 of file opinlinefun_statistical.cxx.

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

std::string GetFInvValueDecl
Initial value:
= "double GetFInvValue(double fF1,double fF2"
",double fX1 );"

Definition at line 248 of file opinlinefun_statistical.cxx.

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

std::string GetGammaContFraction
std::string GetGammaContFractionDecl
std::string 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 112 of file opinlinefun_statistical.cxx.

Referenced by sc::opencl::OpGammaDist::BinInlineFun(), and ScInterpreter::ScGammaDist().

std::string GetGammaDistDecl
Initial value:
= "double GetGammaDist( double fX, double "
"fAlpha, double fLambda );\n"

Definition at line 110 of file opinlinefun_statistical.cxx.

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

std::string GetGammaDistPDF
std::string GetGammaDistPDFDecl
Initial value:
= "double GetGammaDistPDF( double fX"
", double fAlpha, double fLambda );\n"

Definition at line 120 of file opinlinefun_statistical.cxx.

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

std::string 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*pow(fBeta,-1.0);\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 232 of file opinlinefun_statistical.cxx.

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

std::string GetGammaInvValueDecl
Initial value:
= "double"
" GetGammaInvValue(double fAlpha,double fBeta,double fX1 );\n"

Definition at line 230 of file opinlinefun_statistical.cxx.

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

std::string 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 29 of file opinlinefun_statistical.cxx.

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

std::string GetGammaSeriesDecl
std::string 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"
" pow(lcl_getLanczosSum(fA + fB),-1.0);\n"
" double fResult= -fA *log1p(fB*pow(fA + fgm,-1.0))"
"-fB *log1p(fA*pow(fB + fgm,-1.0))-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 1079 of file opinlinefun_statistical.cxx.

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

std::string GetLogBetaDecl
std::string 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) *pow(fZ,-1.0));\n"
" return lcl_GetLogGammaHelper(fZ+2) - log(fZ+1) - log(fZ);\n"
"}\n"

Definition at line 353 of file opinlinefun_statistical.cxx.

Referenced by sc::opencl::OpPoisson::BinInlineFun(), ScInterpreter::GetChiSqDistPDF(), ScInterpreter::GetGammaDistPDF(), ScInterpreter::GetLowRegIGamma(), ScInterpreter::GetUpRegIGamma(), ScInterpreter::ScLogGamma(), and ScInterpreter::ScPoissonDist().

std::string GetLogGammaDecl = "double GetLogGamma(double fZ);\n"

Definition at line 352 of file opinlinefun_statistical.cxx.

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

std::string 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 100 of file opinlinefun_statistical.cxx.

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

std::string GetLowRegIGammaDecl
Initial value:
= "double GetLowRegIGamma( double "
"fA, double fX );\n"

Definition at line 98 of file opinlinefun_statistical.cxx.

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

std::string GetTDist
Initial value:
=
"double GetTDist(double T, double fDF)\n"
"{\n"
" return 0.5 * GetBetaDist(fDF*pow(fDF+T*T,-1.0),fDF*pow(2.0,-1.0), 0.5);\n"
"}\n"

Definition at line 1052 of file opinlinefun_statistical.cxx.

Referenced by sc::opencl::OpTDist::BinInlineFun(), sc::opencl::OpTInv::BinInlineFun(), sc::opencl::OpTTest::BinInlineFun(), ScInterpreter::ScTDist(), ScInterpreter::ScTDist_MS(), ScInterpreter::ScTDist_T(), and ScInterpreter::ScTTest().

std::string GetTDistDecl =" double GetTDist(double T, double fDF);\n"
std::string 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 1032 of file opinlinefun_statistical.cxx.

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

std::string GetUpRegIGammaDecl
Initial value:
=
" double GetUpRegIGamma( double fA, double fX ) ;\n"

Definition at line 1030 of file opinlinefun_statistical.cxx.

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

std::string GetValue
Initial value:
=
"double GetValue( double x,double fp,double fDF )\n"
"{\n"
" return fp - 2 * GetTDist(x, fDF);\n"
"}\n"

Definition at line 22 of file opinlinefun_statistical.cxx.

Referenced by ScGlobal::AddLanguage(), ScBitMaskCompressedArray< A, D >::AndValue(), sc::opencl::OpTInv::BinInlineFun(), ScAttrArray::ChangeIndent(), ScRotateValueItem::Clone(), ScDocShell::ConvertFrom(), ScDocShell::ConvertTo(), ScStyleSheetPool::CopyStyleFrom(), ScTabViewShell::ExecDraw(), ScDrawShell::ExecDrawFunc(), ScTabViewShell::ExecDrawOpt(), ScTabViewShell::ExecSearch(), ScAuditingShell::Execute(), ScDrawTextObjectBar::Execute(), ScEditShell::Execute(), ScCellShell::Execute(), ScPreviewShell::Execute(), ScModule::Execute(), ScDocShell::Execute(), ScTabViewShell::Execute(), ScFormatShell::ExecuteAlignment(), ScEditShell::ExecuteAttr(), ScCellShell::ExecuteDB(), ScCellShell::ExecuteEdit(), ScDrawTextObjectBar::ExecuteExtra(), ScCellShell::ExecuteMove(), ScFormatShell::ExecuteNumFormat(), ScTabViewShell::ExecuteObject(), ScFormatShell::ExecuteStyle(), ScTabViewShell::ExecuteTable(), XclExpCellAlign::FillFromItemSet(), ScPatternAttr::FillToEditItemSet(), FuInsertGraphic::FuInsertGraphic(), ScPatternAttr::GetCellOrientation(), ScPatternAttr::GetDxfFont(), ScPatternAttr::GetFont(), ScPatternAttr::GetFromEditItemSet(), ScCellRangesBase::GetOnePropertyValue(), ScDocumentPool::GetPresentation(), ScViewObjectModeItem::GetPresentation(), ScCellRangesBase::getPropertyDefault(), ScStyleObj::getPropertyDefault_Impl(), ScAutoFormatFieldObj::getPropertyValue(), ScStyleObj::getPropertyValue_Impl(), ScPatternAttr::GetRotateVal(), ScViewUtil::IsFullScreen(), lcl_CopyStyleToPool(), lcl_IsHiddenDocument(), ScExternalRefManager::loadSrcDocument(), ScModule::ModifyOptions(), sc::sidebar::AlignmentPropertyPanel::NotifyItemUpdate(), ScBitMaskCompressedArray< A, D >::OrValue(), ScPatternAttr::PutInPool(), ScCellRangesBase::queryContentCells(), ScTablePage::Reset(), ScTpPrintOptions::Reset(), ScTPValidationValue::Reset(), XclExpExtCF::SaveXml(), ScInterpreter::ScConvertOOo(), ScDocFunc::SetNormalString(), ScInputHandler::StartTable(), ScDocument::TransliterateText(), ScEEImport::WriteToDocument(), and XclExpDxfs::XclExpDxfs().

std::string GetValueDecl
Initial value:
=
"double GetValue( double x,double fp,double fDF );\n"

Definition at line 20 of file opinlinefun_statistical.cxx.

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

std::string lcl_GetBetaHelperContFrac
std::string lcl_GetBetaHelperContFracDecl
std::string 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)*pow(i,-1.0)*p*pow(q,-1.0);\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)*pow(i,-1.0)*p*pow(q,-1.0);\n"
" fSum += fFactor;\n"
" }\n"
" return (fSum > 1.0) ? 1.0 : fSum;\n"
"}\n"

Definition at line 333 of file opinlinefun_statistical.cxx.

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

std::string lcl_GetBinomDistRangeDecl
Initial value:
=
"double lcl_GetBinomDistRange(double n, \n"
"double xs, double xe, double fFactor, double p, double q);"

Definition at line 330 of file opinlinefun_statistical.cxx.

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

std::string 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*pow(2,-1.0) - 0.25);\n"
" fGamma *= fHalfpower;\n"
" fGamma = fGamma*pow(exp(fZgHelp),-1.0);\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 889 of file opinlinefun_statistical.cxx.

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

std::string lcl_GetGammaHelperDecl
Initial value:
=
"static double lcl_GetGammaHelper(double fZ);\n"

Definition at line 887 of file opinlinefun_statistical.cxx.

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

std::string lcl_getLanczosSum
std::string lcl_getLanczosSumDecl
std::string 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 880 of file opinlinefun_statistical.cxx.

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

std::string lcl_GetLogGammaHelperDecl
Initial value:
=
"static double lcl_GetLogGammaHelper(double fZ);\n"

Definition at line 878 of file opinlinefun_statistical.cxx.

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

std::string 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 1045 of file opinlinefun_statistical.cxx.

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

std::string lcl_HasChangeOfSignDecl
Initial value:
=
"static inline bool lcl_HasChangeOfSign( double u, double w );\n"

Definition at line 1043 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverse

Definition at line 1202 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseBetaInv

Definition at line 428 of file opinlinefun_statistical.cxx.

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

std::string 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 425 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseChiInv

Definition at line 525 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseChiInvDecl
Initial value:
=
"static double lcl_IterateInverseChiInv"
"(double fp, double fdf, double fAx, double fBx, bool *rConvError);\n"

Definition at line 522 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseChiSQInv

Definition at line 622 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseChiSQInvDecl
Initial value:
=
"static double lcl_IterateInverseChiSQInv( double fp, double fdf, \n"
" double fAx, double fBx, bool *rConvError );\n"

Definition at line 619 of file opinlinefun_statistical.cxx.

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

std::string lcl_IterateInverseDecl
Initial value:
=
"double lcl_IterateInverse("
"double fAx, double fBx, bool* rConvError,double fp,double fDF );\n"

Definition at line 1199 of file opinlinefun_statistical.cxx.

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

std::string MinDecl = "#define Min 2.22507e-308\n"
std::string phi
Initial value:
=
"double phi(double x)\n"
"{\n"
" return 0.39894228040143268 * exp(-(x * x) / 2.0);\n"
"}\n"

Definition at line 1296 of file opinlinefun_statistical.cxx.

Referenced by sc::opencl::OpZTest::BinInlineFun(), sc::opencl::OpGauss::BinInlineFun(), ScInterpreter::gauss(), ScInterpreter::ScLogNormDist(), ScInterpreter::ScNormDist(), and ScInterpreter::ScPhi().

std::string phiDecl
Initial value:
=
"double phi(double x);\n"

Definition at line 1294 of file opinlinefun_statistical.cxx.

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

std::string 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 1303 of file opinlinefun_statistical.cxx.

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

std::string taylorDecl
Initial value:
=
"double taylor(double* pPolynom, uint nMax, double x);\n"

Definition at line 1301 of file opinlinefun_statistical.cxx.

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