22#include <rtl/ustrbuf.hxx>
24#include <com/sun/star/chart2/XRegressionCurveCalculator.hpp>
33 cppu::WeakImplHelper< css::chart2::XRegressionCurveCalculator >
40 const css::uno::Reference< css::chart2::XScaling >& xScaling );
43 const css::uno::Reference< css::chart2::XScaling >& xScaling );
49 double aInterceptValue,
51 sal_Int32 nMovingType)
override;
54 const css::uno::Sequence< double >& aXValues,
55 const css::uno::Sequence< double >& aYValues )
override = 0;
59 virtual css::uno::Sequence< css::geometry::RealPoint2D > SAL_CALL
getCurveValues(
62 sal_Int32 nPointCount,
63 const css::uno::Reference< css::chart2::XScaling >& xScalingX,
64 const css::uno::Reference< css::chart2::XScaling >& xScalingY,
65 sal_Bool bMaySkipPointsInCalculation )
override;
72 const css::uno::Reference< css::util::XNumberFormatsSupplier >& xNumFmtSupplier,
73 sal_Int32 nNumberFormatKey, sal_Int32 nFormulaLength )
override;
76 const OUString& aXName,
const OUString& aYName )
override;
80 const css::uno::Reference< css::util::XNumberFormatter >& xNumFormatter,
81 sal_Int32 nNumberFormatKey, sal_Int32* pFormulaLength =
nullptr )
const = 0;
84 const css::uno::Reference< css::util::XNumberFormatter >& xNumFormatter,
85 sal_Int32 nNumberFormatKey,
87 const sal_Int32* pStringLength );
89 static void addStringToEquation( OUStringBuffer& aStrEquation, sal_Int32& nLineLength, OUStringBuffer
const & aAddString,
const sal_Int32* pMaxLength );
virtual void SAL_CALL setXYNames(const OUString &aXName, const OUString &aYName) override
static bool isLogarithmicScaling(const css::uno::Reference< css::chart2::XScaling > &xScaling)
virtual OUString ImplGetRepresentation(const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, sal_Int32 *pFormulaLength=nullptr) const =0
RegressionCurveCalculator()
static void addStringToEquation(OUStringBuffer &aStrEquation, sal_Int32 &nLineLength, OUStringBuffer const &aAddString, const sal_Int32 *pMaxLength)
virtual ~RegressionCurveCalculator() override
virtual void SAL_CALL recalculateRegression(const css::uno::Sequence< double > &aXValues, const css::uno::Sequence< double > &aYValues) override=0
virtual void SAL_CALL setRegressionProperties(sal_Int32 aDegree, sal_Bool aForceIntercept, double aInterceptValue, sal_Int32 aPeriod, sal_Int32 nMovingType) override
static OUString getFormattedString(const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, double fNumber, const sal_Int32 *pStringLength)
static bool isLinearScaling(const css::uno::Reference< css::chart2::XScaling > &xScaling)
virtual css::uno::Sequence< css::geometry::RealPoint2D > SAL_CALL getCurveValues(double min, double max, sal_Int32 nPointCount, const css::uno::Reference< css::chart2::XScaling > &xScalingX, const css::uno::Reference< css::chart2::XScaling > &xScalingY, sal_Bool bMaySkipPointsInCalculation) override
virtual double SAL_CALL getCurveValue(double x) override=0
virtual OUString SAL_CALL getRepresentation() override
virtual double SAL_CALL getCorrelationCoefficient() override
virtual OUString SAL_CALL getFormattedRepresentation(const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumFmtSupplier, sal_Int32 nNumberFormatKey, sal_Int32 nFormulaLength) override
double m_fCorrelationCoefficient