Trend line: differences between RegressionCurveCalculators

Laurent BP jumbo4444 at
Fri Sep 25 13:33:27 PDT 2015


I'm working on improvements on trend line equation and I proposed a commit:
I noticed that there are some differences between

1. LogarithmicRegressionCurveCalculator is using "fabs()"
but PolynomialRegressionCurveCalculator is using "std::abs()"
Which one is better?

2. RegressionCalculationHelper.hxx defines two unicode constants. 
#define UC_MINUS_SIGN (sal_Unicode('-'))
But they are only used is LogarithmicRegressionCurveCalculator.cxx.
Other RegressionCurveCalculators do not use them
Should these #define be removed or should they be used by other

Best regards,

Laurent BP

View this message in context:
Sent from the Dev mailing list archive at

More information about the LibreOffice mailing list