Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hello,

I'm working on improvements on trend line equation and I proposed a commit:
https://gerrit.libreoffice.org/18397/
I noticed that there are some differences between
RegressionCurveCalculators:

1. LogarithmicRegressionCurveCalculator is using "fabs()" 
http://opengrok.libreoffice.org/xref/core/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx#141
but PolynomialRegressionCurveCalculator is using "std::abs()"
http://opengrok.libreoffice.org/xref/core/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx#258
Which one is better?

2. RegressionCalculationHelper.hxx defines two unicode constants. 
#define UC_MINUS_SIGN (sal_Unicode('-'))
opengrok.libreoffice.org/xref/core/chart2/source/inc/RegressionCalculationHelper.hxx#29
But they are only used is LogarithmicRegressionCurveCalculator.cxx.
opengrok.libreoffice.org/xref/core/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx#159
Other RegressionCurveCalculators do not use them
Should these #define be removed or should they be used by other
RegressionCurveCalculators?

Best regards,

Laurent BP



-----
LibreOffice 4.3.6.2
--
View this message in context: 
http://nabble.documentfoundation.org/Trend-line-differences-between-RegressionCurveCalculators-tp4161350.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.