LibreOffice Module chart2 (master) 1
Functions
chart::StatisticsHelper Namespace Reference

Functions

OOO_DLLPUBLIC_CHARTTOOLS double getVariance (const css::uno::Sequence< double > &rData)
 Calculates 1/n * sum (x_i - x_mean)^2. More...
 
OOO_DLLPUBLIC_CHARTTOOLS double getStandardDeviation (const css::uno::Sequence< double > &rData)
 
OOO_DLLPUBLIC_CHARTTOOLS double getStandardError (const css::uno::Sequence< double > &rData)
 
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::chart2::data::XLabeledDataSequence > getErrorLabeledDataSequenceFromDataSource (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, bool bPositiveValue, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::chart2::data::XDataSequence > getErrorDataSequenceFromDataSource (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, bool bPositiveValue, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS double getErrorFromDataSource (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, sal_Int32 nIndex, bool bPositiveValue, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS void setErrorDataSequence (const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource, const css::uno::Reference< css::chart2::data::XDataProvider > &xDataProvider, const OUString &rNewRange, bool bPositiveValue, bool bYError=true, OUString const *pXMLRange=nullptr)
 
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::beans::XPropertySetaddErrorBars (const rtl::Reference< ::chart::DataSeries > &xDataSeries, sal_Int32 nStyle, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::beans::XPropertySetgetErrorBars (const rtl::Reference< ::chart::DataSeries > &xDataSeries, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS bool hasErrorBars (const rtl::Reference< ::chart::DataSeries > &xDataSeries, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS void removeErrorBars (const rtl::Reference< ::chart::DataSeries > &xDataSeries, bool bYError=true)
 
OOO_DLLPUBLIC_CHARTTOOLS bool usesErrorBarRanges (const rtl::Reference< ::chart::DataSeries > &xDataSeries, bool bYError=true)
 

Function Documentation

◆ addErrorBars()

OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::beans::XPropertySet > chart::StatisticsHelper::addErrorBars ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
sal_Int32  nStyle,
bool  bYError = true 
)
Returns
the newly created or existing error bar object

Referenced by chart::ChartController::executeDispatch_InsertErrorBars().

◆ getErrorBars()

OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::beans::XPropertySet > chart::StatisticsHelper::getErrorBars ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
bool  bYError = true 
)

◆ getErrorDataSequenceFromDataSource()

OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::chart2::data::XDataSequence > chart::StatisticsHelper::getErrorDataSequenceFromDataSource ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource,
bool  bPositiveValue,
bool  bYError = true 
)

◆ getErrorFromDataSource()

OOO_DLLPUBLIC_CHARTTOOLS double chart::StatisticsHelper::getErrorFromDataSource ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource,
sal_Int32  nIndex,
bool  bPositiveValue,
bool  bYError = true 
)

◆ getErrorLabeledDataSequenceFromDataSource()

OOO_DLLPUBLIC_CHARTTOOLS css::uno::Reference< css::chart2::data::XLabeledDataSequence > chart::StatisticsHelper::getErrorLabeledDataSequenceFromDataSource ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource,
bool  bPositiveValue,
bool  bYError = true 
)

◆ getStandardDeviation()

OOO_DLLPUBLIC_CHARTTOOLS double chart::StatisticsHelper::getStandardDeviation ( const css::uno::Sequence< double > &  rData)

◆ getStandardError()

OOO_DLLPUBLIC_CHARTTOOLS double chart::StatisticsHelper::getStandardError ( const css::uno::Sequence< double > &  rData)

◆ getVariance()

OOO_DLLPUBLIC_CHARTTOOLS double chart::StatisticsHelper::getVariance ( const css::uno::Sequence< double > &  rData)

Calculates 1/n * sum (x_i - x_mean)^2.

See also
http://mathworld.wolfram.com/Variance.html

◆ hasErrorBars()

OOO_DLLPUBLIC_CHARTTOOLS bool chart::StatisticsHelper::hasErrorBars ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
bool  bYError = true 
)

◆ removeErrorBars()

OOO_DLLPUBLIC_CHARTTOOLS void chart::StatisticsHelper::removeErrorBars ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
bool  bYError = true 
)

◆ setErrorDataSequence()

OOO_DLLPUBLIC_CHARTTOOLS void chart::StatisticsHelper::setErrorDataSequence ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource,
const css::uno::Reference< css::chart2::data::XDataProvider > &  xDataProvider,
const OUString &  rNewRange,
bool  bPositiveValue,
bool  bYError = true,
OUString const *  pXMLRange = nullptr 
)

◆ usesErrorBarRanges()

OOO_DLLPUBLIC_CHARTTOOLS bool chart::StatisticsHelper::usesErrorBarRanges ( const rtl::Reference< ::chart::DataSeries > &  xDataSeries,
bool  bYError = true 
)