summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2020-04-26 17:57:42 +0200
committerJulien Nabet <serval2412@yahoo.fr>2020-04-28 22:49:56 +0200
commitcafbad640727529cb3797df1f56c700557c2b764 (patch)
treed0832324ad3a0b8491882e045b2ec373281c1506 /chart2/source/tools
parent4abaf53a24b9e0cd8a73cad881977278e35cb633 (diff)
Fix typo in code
Change-Id: I6a67206aee0b1844090d86b3fc91dc6c2e650c77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92940 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/ExponentialRegressionCurveCalculator.cxx4
-rw-r--r--chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx4
-rw-r--r--chart2/source/tools/MeanValueRegressionCurveCalculator.cxx4
-rw-r--r--chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx2
-rw-r--r--chart2/source/tools/PolynomialRegressionCurveCalculator.cxx6
-rw-r--r--chart2/source/tools/PotentialRegressionCurveCalculator.cxx4
-rw-r--r--chart2/source/tools/RegressionCurveCalculator.cxx6
7 files changed, 15 insertions, 15 deletions
diff --git a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
index 600afa76c09b..7d85b19b5a3d 100644
--- a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
@@ -63,7 +63,7 @@ void SAL_CALL ExponentialRegressionCurveCalculator::recalculateRegression(
{
::rtl::math::setNan( & m_fLogSlope );
::rtl::math::setNan( & m_fLogIntercept );
- ::rtl::math::setNan( & m_fCorrelationCoeffitient );// actual it is coefficient of determination
+ ::rtl::math::setNan( & m_fCorrelationCoefficient );// actual it is coefficient of determination
return;
}
m_fSign = -1.0;
@@ -107,7 +107,7 @@ void SAL_CALL ExponentialRegressionCurveCalculator::recalculateRegression(
m_fLogSlope = fQxy / fQx;
m_fLogIntercept = mForceIntercept ? fLogIntercept : fAverageY - m_fLogSlope * fAverageX;
- m_fCorrelationCoeffitient = fQxy / sqrt( fQx * fQy );
+ m_fCorrelationCoefficient = fQxy / sqrt( fQx * fQy );
}
double SAL_CALL ExponentialRegressionCurveCalculator::getCurveValue( double x )
diff --git a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx
index 3c486411b37f..c09eab50975c 100644
--- a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx
@@ -55,7 +55,7 @@ void SAL_CALL LogarithmicRegressionCurveCalculator::recalculateRegression(
{
::rtl::math::setNan( & m_fSlope );
::rtl::math::setNan( & m_fIntercept );
- ::rtl::math::setNan( & m_fCorrelationCoeffitient );
+ ::rtl::math::setNan( & m_fCorrelationCoefficient );
return;
}
@@ -84,7 +84,7 @@ void SAL_CALL LogarithmicRegressionCurveCalculator::recalculateRegression(
m_fSlope = fQxy / fQx;
m_fIntercept = fAverageY - m_fSlope * fAverageX;
- m_fCorrelationCoeffitient = fQxy / sqrt( fQx * fQy );
+ m_fCorrelationCoefficient = fQxy / sqrt( fQx * fQy );
}
double SAL_CALL LogarithmicRegressionCurveCalculator::getCurveValue( double x )
diff --git a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
index 4fe6bea036bb..c9821343b4ec 100644
--- a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
@@ -55,7 +55,7 @@ void SAL_CALL MeanValueRegressionCurveCalculator::recalculateRegression(
fSumY += pY[i];
}
- m_fCorrelationCoeffitient = 0.0;
+ m_fCorrelationCoefficient = 0.0;
if( nMax == 0 )
{
@@ -79,7 +79,7 @@ void SAL_CALL MeanValueRegressionCurveCalculator::recalculateRegression(
}
}
OSL_ASSERT( fErrorSum >= 0.0 );
- m_fCorrelationCoeffitient = sqrt( fErrorSum / (nMax - 1 ));
+ m_fCorrelationCoefficient = sqrt( fErrorSum / (nMax - 1 ));
}
}
}
diff --git a/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx b/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx
index 2ba5df0b6fca..7774bec02a4f 100644
--- a/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx
@@ -40,7 +40,7 @@ void SAL_CALL MovingAverageRegressionCurveCalculator::recalculateRegression(
const uno::Sequence< double >& aXValues,
const uno::Sequence< double >& aYValues )
{
- ::rtl::math::setNan( & m_fCorrelationCoeffitient );
+ ::rtl::math::setNan( & m_fCorrelationCoefficient );
RegressionCalculationHelper::tDoubleVectorPair aValues(
RegressionCalculationHelper::cleanup(
diff --git a/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx b/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
index c06a04ab0d96..b3585b71f5e3 100644
--- a/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/PolynomialRegressionCurveCalculator.cxx
@@ -80,9 +80,9 @@ void PolynomialRegressionCurveCalculator::computeCorrelationCoefficient(
}
if (aRSquared > 0.0)
- m_fCorrelationCoeffitient = std::sqrt(aRSquared);
+ m_fCorrelationCoefficient = std::sqrt(aRSquared);
else
- m_fCorrelationCoeffitient = 0.0;
+ m_fCorrelationCoefficient = 0.0;
}
// ____ XRegressionCurveCalculator ____
@@ -90,7 +90,7 @@ void SAL_CALL PolynomialRegressionCurveCalculator::recalculateRegression(
const uno::Sequence< double >& aXValues,
const uno::Sequence< double >& aYValues )
{
- rtl::math::setNan(&m_fCorrelationCoeffitient);
+ rtl::math::setNan(&m_fCorrelationCoefficient);
RegressionCalculationHelper::tDoubleVectorPair aValues(
RegressionCalculationHelper::cleanup( aXValues, aYValues, RegressionCalculationHelper::isValid()));
diff --git a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
index 5ced438e1a3f..eb054bd8db66 100644
--- a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
@@ -63,7 +63,7 @@ void SAL_CALL PotentialRegressionCurveCalculator::recalculateRegression(
{
::rtl::math::setNan( & m_fSlope );
::rtl::math::setNan( & m_fIntercept );
- ::rtl::math::setNan( & m_fCorrelationCoeffitient );
+ ::rtl::math::setNan( & m_fCorrelationCoefficient );
return;
}
m_fSign = -1.0;
@@ -94,7 +94,7 @@ void SAL_CALL PotentialRegressionCurveCalculator::recalculateRegression(
m_fSlope = fQxy / fQx;
m_fIntercept = fAverageY - m_fSlope * fAverageX;
- m_fCorrelationCoeffitient = fQxy / sqrt( fQx * fQy );
+ m_fCorrelationCoefficient = fQxy / sqrt( fQx * fQy );
m_fIntercept = m_fSign * exp( m_fIntercept );
}
diff --git a/chart2/source/tools/RegressionCurveCalculator.cxx b/chart2/source/tools/RegressionCurveCalculator.cxx
index cd6fd9d182be..5b65375b0376 100644
--- a/chart2/source/tools/RegressionCurveCalculator.cxx
+++ b/chart2/source/tools/RegressionCurveCalculator.cxx
@@ -37,14 +37,14 @@ namespace chart
{
RegressionCurveCalculator::RegressionCurveCalculator() :
- m_fCorrelationCoeffitient(0.0),
+ m_fCorrelationCoefficient(0.0),
mDegree(2),
mForceIntercept(false),
mInterceptValue(0.0),
mPeriod(2),
mXName("x"), mYName("f(x)")
{
- rtl::math::setNan( &m_fCorrelationCoeffitient );
+ rtl::math::setNan( &m_fCorrelationCoefficient );
rtl::math::setNan( &mInterceptValue );
}
@@ -167,7 +167,7 @@ Sequence< geometry::RealPoint2D > SAL_CALL RegressionCurveCalculator::getCurveVa
double SAL_CALL RegressionCurveCalculator::getCorrelationCoefficient()
{
- return m_fCorrelationCoeffitient;
+ return m_fCorrelationCoefficient;
}
OUString SAL_CALL RegressionCurveCalculator::getRepresentation()