LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
chart::MovingAverageRegressionCurveCalculator Class Referencefinal

#include <MovingAverageRegressionCurveCalculator.hxx>

Inheritance diagram for chart::MovingAverageRegressionCurveCalculator:
[legend]
Collaboration diagram for chart::MovingAverageRegressionCurveCalculator:
[legend]

Public Member Functions

 MovingAverageRegressionCurveCalculator ()
 
virtual ~MovingAverageRegressionCurveCalculator () override
 
- Public Member Functions inherited from chart::RegressionCurveCalculator
 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
 

Protected Member Functions

virtual OUString ImplGetRepresentation (const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, sal_Int32 *pFormulaLength=nullptr) const override
 
virtual OUString ImplGetRepresentation (const css::uno::Reference< css::util::XNumberFormatter > &xNumFormatter, sal_Int32 nNumberFormatKey, sal_Int32 *pFormulaLength=nullptr) const =0
 

Private Member Functions

virtual void SAL_CALL recalculateRegression (const css::uno::Sequence< double > &aXValues, const css::uno::Sequence< double > &aYValues) override
 
virtual double SAL_CALL getCurveValue (double x) override
 
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
 
void calculateValues (RegressionCalculationHelper::tDoubleVectorPair aValues, bool bUseXAvg)
 
void calculateValuesCentral (RegressionCalculationHelper::tDoubleVectorPair aValues)
 

Private Attributes

std::vector< double > aYList
 
std::vector< double > aXList
 

Additional Inherited Members

- Static Public Member Functions inherited from chart::RegressionCurveCalculator
static bool isLinearScaling (const css::uno::Reference< css::chart2::XScaling > &xScaling)
 
static bool isLogarithmicScaling (const css::uno::Reference< css::chart2::XScaling > &xScaling)
 
- Static Protected Member Functions inherited from chart::RegressionCurveCalculator
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 inherited from chart::RegressionCurveCalculator
double m_fCorrelationCoefficient
 
sal_Int32 mDegree
 
bool mForceIntercept
 
double mInterceptValue
 
sal_Int32 mPeriod
 
OUString mXName
 
OUString mYName
 
sal_Int32 mnMovingType
 

Detailed Description

Definition at line 28 of file MovingAverageRegressionCurveCalculator.hxx.

Constructor & Destructor Documentation

◆ MovingAverageRegressionCurveCalculator()

chart::MovingAverageRegressionCurveCalculator::MovingAverageRegressionCurveCalculator ( )

Definition at line 36 of file MovingAverageRegressionCurveCalculator.cxx.

◆ ~MovingAverageRegressionCurveCalculator()

chart::MovingAverageRegressionCurveCalculator::~MovingAverageRegressionCurveCalculator ( )
overridevirtual

Definition at line 39 of file MovingAverageRegressionCurveCalculator.cxx.

Member Function Documentation

◆ calculateValues()

void chart::MovingAverageRegressionCurveCalculator::calculateValues ( RegressionCalculationHelper::tDoubleVectorPair  aValues,
bool  bUseXAvg 
)
private

◆ calculateValuesCentral()

void chart::MovingAverageRegressionCurveCalculator::calculateValuesCentral ( RegressionCalculationHelper::tDoubleVectorPair  aValues)
private

◆ getCurveValue()

double SAL_CALL chart::MovingAverageRegressionCurveCalculator::getCurveValue ( double  x)
overrideprivatevirtual

◆ getCurveValues()

uno::Sequence< geometry::RealPoint2D > SAL_CALL chart::MovingAverageRegressionCurveCalculator::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 
)
overrideprivatevirtual

Reimplemented from chart::RegressionCurveCalculator.

Definition at line 143 of file MovingAverageRegressionCurveCalculator.cxx.

References aXList, aYList, x, and y.

◆ ImplGetRepresentation()

OUString chart::MovingAverageRegressionCurveCalculator::ImplGetRepresentation ( const css::uno::Reference< css::util::XNumberFormatter > &  xNumFormatter,
sal_Int32  nNumberFormatKey,
sal_Int32 *  pFormulaLength = nullptr 
) const
overrideprotectedvirtual

◆ recalculateRegression()

void SAL_CALL chart::MovingAverageRegressionCurveCalculator::recalculateRegression ( const css::uno::Sequence< double > &  aXValues,
const css::uno::Sequence< double > &  aYValues 
)
overrideprivatevirtual

Member Data Documentation

◆ aXList

std::vector<double> chart::MovingAverageRegressionCurveCalculator::aXList
private

◆ aYList

std::vector<double> chart::MovingAverageRegressionCurveCalculator::aYList
private

The documentation for this class was generated from the following files: