LibreOffice Module chart2 (master) 1
|
#include <RegressionCurveCalculator.hxx>
Public Member Functions | |
RegressionCurveCalculator () | |
virtual | ~RegressionCurveCalculator () override |
virtual void SAL_CALL | setRegressionProperties (sal_Int32 aDegree, sal_Bool aForceIntercept, double aInterceptValue, sal_Int32 aPeriod, sal_Int32 nMovingType) override |
virtual void SAL_CALL | recalculateRegression (const css::uno::Sequence< double > &aXValues, const css::uno::Sequence< double > &aYValues) override=0 |
virtual double SAL_CALL | getCurveValue (double x) override=0 |
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 | getCorrelationCoefficient () override |
virtual OUString SAL_CALL | getRepresentation () override |
virtual OUString SAL_CALL | getFormattedRepresentation (const css::uno::Reference< css::util::XNumberFormatsSupplier > &xNumFmtSupplier, sal_Int32 nNumberFormatKey, sal_Int32 nFormulaLength) override |
virtual void SAL_CALL | setXYNames (const OUString &aXName, const OUString &aYName) override |
Static Public Member Functions | |
static bool | isLinearScaling (const css::uno::Reference< css::chart2::XScaling > &xScaling) |
static bool | isLogarithmicScaling (const css::uno::Reference< css::chart2::XScaling > &xScaling) |
Protected Member Functions | |
virtual OUString | ImplGetRepresentation (const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, sal_Int32 *pFormulaLength=nullptr) const =0 |
Static Protected Member Functions | |
static OUString | getFormattedString (const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, double fNumber, const sal_Int32 *pStringLength) |
static void | addStringToEquation (OUStringBuffer &aStrEquation, sal_Int32 &nLineLength, OUStringBuffer const &aAddString, const sal_Int32 *pMaxLength) |
Protected Attributes | |
double | m_fCorrelationCoefficient |
sal_Int32 | mDegree |
bool | mForceIntercept |
double | mInterceptValue |
sal_Int32 | mPeriod |
OUString | mXName |
OUString | mYName |
sal_Int32 | mnMovingType |
Definition at line 32 of file RegressionCurveCalculator.hxx.
chart::RegressionCurveCalculator::RegressionCurveCalculator | ( | ) |
Definition at line 39 of file RegressionCurveCalculator.cxx.
|
overridevirtual |
Definition at line 51 of file RegressionCurveCalculator.cxx.
|
staticprotected |
Definition at line 193 of file RegressionCurveCalculator.cxx.
Referenced by chart::ExponentialRegressionCurveCalculator::ImplGetRepresentation(), chart::LogarithmicRegressionCurveCalculator::ImplGetRepresentation(), chart::PotentialRegressionCurveCalculator::ImplGetRepresentation(), and chart::PolynomialRegressionCurveCalculator::ImplGetRepresentation().
|
overridevirtual |
Definition at line 167 of file RegressionCurveCalculator.cxx.
References m_fCorrelationCoefficient.
|
overridepure virtual |
Implemented in chart::ExponentialRegressionCurveCalculator, chart::LogarithmicRegressionCurveCalculator, chart::MeanValueRegressionCurveCalculator, chart::MovingAverageRegressionCurveCalculator, chart::PolynomialRegressionCurveCalculator, and chart::PotentialRegressionCurveCalculator.
Referenced by getCurveValues().
|
overridevirtual |
Reimplemented in chart::ExponentialRegressionCurveCalculator, chart::LinearRegressionCurveCalculator, chart::LogarithmicRegressionCurveCalculator, chart::MeanValueRegressionCurveCalculator, chart::MovingAverageRegressionCurveCalculator, and chart::PotentialRegressionCurveCalculator.
Definition at line 127 of file RegressionCurveCalculator.cxx.
References getCurveValue(), max, min(), and x.
Referenced by chart::ExponentialRegressionCurveCalculator::getCurveValues(), chart::LinearRegressionCurveCalculator::getCurveValues(), chart::LogarithmicRegressionCurveCalculator::getCurveValues(), chart::MeanValueRegressionCurveCalculator::getCurveValues(), and chart::PotentialRegressionCurveCalculator::getCurveValues().
|
overridevirtual |
Definition at line 177 of file RegressionCurveCalculator.cxx.
References comphelper::getProcessComponentContext(), getRepresentation(), and ImplGetRepresentation().
|
staticprotected |
Definition at line 87 of file RegressionCurveCalculator.cxx.
Referenced by chart::ExponentialRegressionCurveCalculator::ImplGetRepresentation(), chart::LogarithmicRegressionCurveCalculator::ImplGetRepresentation(), chart::MeanValueRegressionCurveCalculator::ImplGetRepresentation(), chart::PotentialRegressionCurveCalculator::ImplGetRepresentation(), and chart::PolynomialRegressionCurveCalculator::ImplGetRepresentation().
|
overridevirtual |
Definition at line 172 of file RegressionCurveCalculator.cxx.
References ImplGetRepresentation().
Referenced by getFormattedRepresentation().
|
protectedpure virtual |
Implemented in chart::ExponentialRegressionCurveCalculator, chart::LogarithmicRegressionCurveCalculator, chart::MeanValueRegressionCurveCalculator, chart::MovingAverageRegressionCurveCalculator, chart::PotentialRegressionCurveCalculator, and chart::PolynomialRegressionCurveCalculator.
Referenced by getFormattedRepresentation(), and getRepresentation().
|
static |
Definition at line 54 of file RegressionCurveCalculator.cxx.
Referenced by chart::ExponentialRegressionCurveCalculator::getCurveValues(), chart::LinearRegressionCurveCalculator::getCurveValues(), and chart::LogarithmicRegressionCurveCalculator::getCurveValues().
|
static |
Definition at line 64 of file RegressionCurveCalculator.cxx.
Referenced by chart::ExponentialRegressionCurveCalculator::getCurveValues(), chart::LogarithmicRegressionCurveCalculator::getCurveValues(), and chart::PotentialRegressionCurveCalculator::getCurveValues().
|
overridepure virtual |
|
overridevirtual |
Reimplemented in chart::LinearRegressionCurveCalculator.
Definition at line 71 of file RegressionCurveCalculator.cxx.
References mDegree, mForceIntercept, mInterceptValue, mnMovingType, and mPeriod.
Referenced by chart::LinearRegressionCurveCalculator::setRegressionProperties().
|
overridevirtual |
Definition at line 205 of file RegressionCurveCalculator.cxx.
|
protected |
Definition at line 91 of file RegressionCurveCalculator.hxx.
Referenced by chart::PolynomialRegressionCurveCalculator::computeCorrelationCoefficient(), getCorrelationCoefficient(), chart::ExponentialRegressionCurveCalculator::recalculateRegression(), chart::LogarithmicRegressionCurveCalculator::recalculateRegression(), chart::MeanValueRegressionCurveCalculator::recalculateRegression(), chart::MovingAverageRegressionCurveCalculator::recalculateRegression(), chart::PolynomialRegressionCurveCalculator::recalculateRegression(), and chart::PotentialRegressionCurveCalculator::recalculateRegression().
|
protected |
Definition at line 93 of file RegressionCurveCalculator.hxx.
Referenced by chart::PolynomialRegressionCurveCalculator::recalculateRegression(), and setRegressionProperties().
|
protected |
Definition at line 94 of file RegressionCurveCalculator.hxx.
Referenced by chart::PolynomialRegressionCurveCalculator::computeCorrelationCoefficient(), chart::ExponentialRegressionCurveCalculator::recalculateRegression(), chart::PolynomialRegressionCurveCalculator::recalculateRegression(), and setRegressionProperties().
|
protected |
Definition at line 95 of file RegressionCurveCalculator.hxx.
Referenced by chart::PolynomialRegressionCurveCalculator::computeCorrelationCoefficient(), chart::ExponentialRegressionCurveCalculator::recalculateRegression(), chart::PolynomialRegressionCurveCalculator::recalculateRegression(), and setRegressionProperties().
|
protected |
Definition at line 98 of file RegressionCurveCalculator.hxx.
Referenced by chart::MovingAverageRegressionCurveCalculator::recalculateRegression(), and setRegressionProperties().
|
protected |
Definition at line 96 of file RegressionCurveCalculator.hxx.
Referenced by chart::MovingAverageRegressionCurveCalculator::calculateValues(), chart::MovingAverageRegressionCurveCalculator::calculateValuesCentral(), chart::MovingAverageRegressionCurveCalculator::ImplGetRepresentation(), and setRegressionProperties().
|
protected |
Definition at line 97 of file RegressionCurveCalculator.hxx.
Referenced by chart::ExponentialRegressionCurveCalculator::ImplGetRepresentation(), chart::LogarithmicRegressionCurveCalculator::ImplGetRepresentation(), chart::PotentialRegressionCurveCalculator::ImplGetRepresentation(), chart::PolynomialRegressionCurveCalculator::ImplGetRepresentation(), and setXYNames().
|
protected |
Definition at line 97 of file RegressionCurveCalculator.hxx.
Referenced by chart::ExponentialRegressionCurveCalculator::ImplGetRepresentation(), chart::LogarithmicRegressionCurveCalculator::ImplGetRepresentation(), chart::MeanValueRegressionCurveCalculator::ImplGetRepresentation(), chart::PotentialRegressionCurveCalculator::ImplGetRepresentation(), chart::PolynomialRegressionCurveCalculator::ImplGetRepresentation(), and setXYNames().