update dev300-m58
[ooovba.git] / chart2 / source / inc / PotentialRegressionCurveCalculator.hxx
blob2d991a1a7fa66de625f05cdc06b9621bb446bcba
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PotentialRegressionCurveCalculator.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
31 #define CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
33 #include "RegressionCurveCalculator.hxx"
34 #include "charttoolsdllapi.hxx"
36 namespace chart
40 class PotentialRegressionCurveCalculator :
41 public RegressionCurveCalculator
43 public:
44 PotentialRegressionCurveCalculator();
45 virtual ~PotentialRegressionCurveCalculator();
47 protected:
48 virtual ::rtl::OUString ImplGetRepresentation(
49 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >& xNumFormatter,
50 ::sal_Int32 nNumberFormatKey ) const;
52 private:
53 // ____ XRegressionCurveCalculator ____
54 virtual void SAL_CALL recalculateRegression(
55 const ::com::sun::star::uno::Sequence< double >& aXValues,
56 const ::com::sun::star::uno::Sequence< double >& aYValues )
57 throw (::com::sun::star::uno::RuntimeException);
58 virtual double SAL_CALL getCurveValue( double x )
59 throw (::com::sun::star::lang::IllegalArgumentException,
60 ::com::sun::star::uno::RuntimeException);
61 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > SAL_CALL getCurveValues(
62 double min,
63 double max,
64 ::sal_Int32 nPointCount,
65 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XScaling >& xScalingX,
66 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XScaling >& xScalingY,
67 ::sal_Bool bMaySkipPointsInCalculation )
68 throw (::com::sun::star::lang::IllegalArgumentException,
69 ::com::sun::star::uno::RuntimeException);
71 // formula is: f(x) = x ^ m_fSlope * m_fIntercept
72 double m_fSlope;
73 double m_fIntercept;
76 } // namespace chart
78 // CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
79 #endif