[Libreoffice-commits] core.git: sc/source
Tomaž Vajngerl
tomaz.vajngerl at collabora.com
Sun Jan 24 06:10:09 PST 2016
sc/source/ui/StatisticsDialogs/RegressionDialog.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4d67b0baaa4f0fb009b9ee6fbcf4618abf009f53
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date: Sun Jan 24 15:08:05 2016 +0100
tdf#74667 interchange slope and intercept for power regression
Change-Id: I9da7edeabcc9f963ac19d26114fa101d4b5ce98f
diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
index ad092ee..84939a8 100644
--- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
@@ -53,21 +53,21 @@ namespace
{
"=SLOPE(%VARIABLE2_RANGE% ; %VARIABLE1_RANGE%)",
"=SLOPE(%VARIABLE2_RANGE% ; LN(%VARIABLE1_RANGE%))",
- "=EXP(INTERCEPT(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%)))"
+ "=SLOPE(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%))"
};
OUString constTemplatesINTERCEPT[] =
{
"=INTERCEPT(%VARIABLE2_RANGE% ; %VARIABLE1_RANGE%)",
"=INTERCEPT(%VARIABLE2_RANGE% ; LN(%VARIABLE1_RANGE%))",
- "=SLOPE(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%))"
+ "=EXP(INTERCEPT(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%)))"
};
OUString constRegressionFormula[] =
{
"=%A% * %ADDRESS% + %B%",
"=%A% * LN(%ADDRESS%) + %B%",
- "=%A% * %ADDRESS% ^ %B%"
+ "=%B% * %ADDRESS% ^ %A%"
};
} // end anonymous namespace
More information about the Libreoffice-commits
mailing list