1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
20 #define CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
22 #include "RegressionCurveCalculator.hxx"
23 #include "charttoolsdllapi.hxx"
29 class PotentialRegressionCurveCalculator
:
30 public RegressionCurveCalculator
33 PotentialRegressionCurveCalculator();
34 virtual ~PotentialRegressionCurveCalculator();
37 virtual OUString
ImplGetRepresentation(
38 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& xNumFormatter
,
39 ::sal_Int32 nNumberFormatKey
) const;
42 // ____ XRegressionCurveCalculator ____
43 virtual void SAL_CALL
recalculateRegression(
44 const ::com::sun::star::uno::Sequence
< double >& aXValues
,
45 const ::com::sun::star::uno::Sequence
< double >& aYValues
)
46 throw (::com::sun::star::uno::RuntimeException
);
47 virtual double SAL_CALL
getCurveValue( double x
)
48 throw (::com::sun::star::lang::IllegalArgumentException
,
49 ::com::sun::star::uno::RuntimeException
);
50 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::geometry::RealPoint2D
> SAL_CALL
getCurveValues(
53 ::sal_Int32 nPointCount
,
54 const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XScaling
>& xScalingX
,
55 const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XScaling
>& xScalingY
,
56 ::sal_Bool bMaySkipPointsInCalculation
)
57 throw (::com::sun::star::lang::IllegalArgumentException
,
58 ::com::sun::star::uno::RuntimeException
);
60 // formula is: f(x) = x ^ m_fSlope * m_fIntercept
67 // CHART2_POTENTIALREGRESSIONCURVECALCULATOR_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */