LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
chart::RegressionCurveCalculator Class Referenceabstract

#include <RegressionCurveCalculator.hxx>

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

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
 

Detailed Description

Definition at line 32 of file RegressionCurveCalculator.hxx.

Constructor & Destructor Documentation

◆ RegressionCurveCalculator()

chart::RegressionCurveCalculator::RegressionCurveCalculator ( )

Definition at line 39 of file RegressionCurveCalculator.cxx.

◆ ~RegressionCurveCalculator()

chart::RegressionCurveCalculator::~RegressionCurveCalculator ( )
overridevirtual

Definition at line 51 of file RegressionCurveCalculator.cxx.

Member Function Documentation

◆ addStringToEquation()

void chart::RegressionCurveCalculator::addStringToEquation ( OUStringBuffer &  aStrEquation,
sal_Int32 &  nLineLength,
OUStringBuffer const &  aAddString,
const sal_Int32 *  pMaxLength 
)
staticprotected

◆ getCorrelationCoefficient()

double SAL_CALL chart::RegressionCurveCalculator::getCorrelationCoefficient ( )
overridevirtual

Definition at line 167 of file RegressionCurveCalculator.cxx.

References m_fCorrelationCoefficient.

◆ getCurveValue()

virtual double SAL_CALL chart::RegressionCurveCalculator::getCurveValue ( double  x)
overridepure virtual

◆ getCurveValues()

Sequence< geometry::RealPoint2D > SAL_CALL chart::RegressionCurveCalculator::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 
)
overridevirtual

◆ getFormattedRepresentation()

OUString SAL_CALL chart::RegressionCurveCalculator::getFormattedRepresentation ( const css::uno::Reference< css::util::XNumberFormatsSupplier > &  xNumFmtSupplier,
sal_Int32  nNumberFormatKey,
sal_Int32  nFormulaLength 
)
overridevirtual

◆ getFormattedString()

OUString chart::RegressionCurveCalculator::getFormattedString ( const css::uno::Reference< css::util::XNumberFormatter > &  xNumFormatter,
sal_Int32  nNumberFormatKey,
double  fNumber,
const sal_Int32 *  pStringLength 
)
staticprotected

◆ getRepresentation()

OUString SAL_CALL chart::RegressionCurveCalculator::getRepresentation ( )
overridevirtual

Definition at line 172 of file RegressionCurveCalculator.cxx.

References ImplGetRepresentation().

Referenced by getFormattedRepresentation().

◆ ImplGetRepresentation()

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

◆ isLinearScaling()

bool chart::RegressionCurveCalculator::isLinearScaling ( const css::uno::Reference< css::chart2::XScaling > &  xScaling)
static

◆ isLogarithmicScaling()

bool chart::RegressionCurveCalculator::isLogarithmicScaling ( const css::uno::Reference< css::chart2::XScaling > &  xScaling)
static

◆ recalculateRegression()

virtual void SAL_CALL chart::RegressionCurveCalculator::recalculateRegression ( const css::uno::Sequence< double > &  aXValues,
const css::uno::Sequence< double > &  aYValues 
)
overridepure virtual

◆ setRegressionProperties()

void chart::RegressionCurveCalculator::setRegressionProperties ( sal_Int32  aDegree,
sal_Bool  aForceIntercept,
double  aInterceptValue,
sal_Int32  aPeriod,
sal_Int32  nMovingType 
)
overridevirtual

◆ setXYNames()

void SAL_CALL chart::RegressionCurveCalculator::setXYNames ( const OUString &  aXName,
const OUString &  aYName 
)
overridevirtual

Definition at line 205 of file RegressionCurveCalculator.cxx.

References mXName, and mYName.

Member Data Documentation

◆ m_fCorrelationCoefficient

double chart::RegressionCurveCalculator::m_fCorrelationCoefficient
protected

◆ mDegree

sal_Int32 chart::RegressionCurveCalculator::mDegree
protected

◆ mForceIntercept

bool chart::RegressionCurveCalculator::mForceIntercept
protected

◆ mInterceptValue

double chart::RegressionCurveCalculator::mInterceptValue
protected

◆ mnMovingType

sal_Int32 chart::RegressionCurveCalculator::mnMovingType
protected

◆ mPeriod

sal_Int32 chart::RegressionCurveCalculator::mPeriod
protected

◆ mXName

OUString chart::RegressionCurveCalculator::mXName
protected

◆ mYName

OUString chart::RegressionCurveCalculator::mYName
protected

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