summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-05-27 08:02:37 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-07-03 21:46:39 +0200
commite6a0cc2d6cb37bf4e04861173c7e55b307513778 (patch)
tree3569da62ea24a3fd4dce7216751692b1a5e79306 /offapi
parentc63b74d22d360893bb9e1200f59099ffb7943705 (diff)
fdo#35712 polynomial and moving average regression lines
- added polynomial and moving average to the dialog - implemented moving average and polynomal RegressionCurveCalculator - added icon for polynomial regression curve - prepare icon for moving average regression curve - degree parameter for polynomial regression curve - period parameter for moving average regression curve - limit the curve to max and min x value - added extrapolation Change-Id: I4ebb8dc23a3aff285b999e115fdda20ab11910a5
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/chart/ChartRegressionCurveType.idl7
-rw-r--r--offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl7
2 files changed, 10 insertions, 4 deletions
diff --git a/offapi/com/sun/star/chart/ChartRegressionCurveType.idl b/offapi/com/sun/star/chart/ChartRegressionCurveType.idl
index d4615acc0127..61aaf6580542 100644
--- a/offapi/com/sun/star/chart/ChartRegressionCurveType.idl
+++ b/offapi/com/sun/star/chart/ChartRegressionCurveType.idl
@@ -60,12 +60,9 @@ published enum ChartRegressionCurveType
/** displays a polynomial regression curve.
-
- @deprecated
*/
POLYNOMIAL,
-
/** displays a regression curve using a power function.
<p>The values of the series are approximated using the model
@@ -73,6 +70,10 @@ published enum ChartRegressionCurveType
*/
POWER
+ /** displays a moving average regression curve.
+ */
+ //MOVING_AVERAGE
+
};
diff --git a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
index f7c22ce57eaa..ac62c62c59e5 100644
--- a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
+++ b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
@@ -36,6 +36,11 @@ module chart2
interface XRegressionCurveCalculator : com::sun::star::uno::XInterface
{
+
+ void setRegressionProperties( [in] long degree,
+ [in] double intercept,
+ [in] long period);
+
/** recalculates the parameters of the internal regression curve according to
the <i>x</i>- and <i>y</i>-values given.
@@ -48,7 +53,7 @@ interface XRegressionCurveCalculator : com::sun::star::uno::XInterface
which the regression is based
*/
void recalculateRegression( [in] sequence< double > aXValues,
- [in] sequence< double > aYValues );
+ [in] sequence< double > aYValues);
/** calculates the value of the regression curve for <i>x</i>.