summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamsil1amani3 <tamsajama@gmail.com>2016-12-25 03:44:28 +0530
committerjan iversen <jani@documentfoundation.org>2016-12-25 07:34:22 +0000
commit452b8334e60082c113809f90fd59967ac9c471a2 (patch)
tree37d3dba69e33a6b4cd4aceaa90f0442e6f639d74
parent10ef8042eb6c5ae75ea78688eb4289c74835d308 (diff)
tdf#39674 Converted terms from German to English
Renamed variable fSchaetwert -> fEstimated Change-Id: Ia02c5c58149191286ec7dda2ad4ac2032aa4124a Reviewed-on: https://gerrit.libreoffice.org/32414 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--sc/source/core/opencl/op_financial.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx
index fce903e8e7ab..a10f094efb73 100644
--- a/sc/source/core/opencl/op_financial.cxx
+++ b/sc/source/core/opencl/op_financial.cxx
@@ -929,7 +929,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
ss << " int gid0 = get_global_id(0);\n";
FormulaToken* pSur = vSubArguments[1]->GetFormulaToken();
assert(pSur);
- ss << " double fSchaetzwert = ";
+ ss << " double fEstimated = ";
ss << vSubArguments[1]->GenSlidingWindowDeclRef() << ";\n";
ss << " double fEps = 1.0;\n";
ss << " double x = 0.0, xNeu = 0.0, fZaehler = 0.0, fNenner = 0.0;\n";
@@ -939,18 +939,18 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
const formula::SingleVectorRefToken* pSVR =
static_cast< const formula::SingleVectorRefToken* >(pSur);
ss << " if (gid0 >= " << pSVR->GetArrayLength() << ")\n";
- ss << " fSchaetzwert = 0.1;\n";
- ss << " if (isnan(fSchaetzwert))\n";
+ ss << " fEstimated = 0.1;\n";
+ ss << " if (isnan(fEstimated))\n";
ss << " x = 0.1;\n";
ss << " else\n";
}
else if (pSur->GetType() == formula::svDouble)
{
- ss << " if (isnan(fSchaetzwert))\n";
+ ss << " if (isnan(fEstimated))\n";
ss << " x = 0.1;\n";
ss << " else\n";
}
- ss << " x = fSchaetzwert;\n";
+ ss << " x = fEstimated;\n";
ss << " unsigned short nItCount = 0;\n";
ss << " while (fEps > Epsilon && nItCount < 20){\n";
ss << " nCount = 0.0; fZaehler = 0.0; fNenner = 0.0;\n";
@@ -1061,7 +1061,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
ss << " fEps = fabs(xNeu - x);\n";
ss << " x = xNeu;\n";
ss << " nItCount++;\n }\n";
- ss << " if (fSchaetzwert == 0.0 && fabs(x) < Epsilon)\n";
+ ss << " if (fEstimated == 0.0 && fabs(x) < Epsilon)\n";
ss << " x = 0.0;\n";
ss << " if (fEps < Epsilon)\n";
ss << " return x;\n";