summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool/interpr3.cxx')
-rw-r--r--sc/source/core/tool/interpr3.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 0b702777d8e8..08f048147769 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -755,7 +755,7 @@ double ScInterpreter::GetChiSqDistPDF(double fX, double fDF)
else // fDF is small in most cases, we can iterate
{
if (fmod(fDF,2.0)<0.5)
- {
+ {
// even
fValue = 0.5;
fCount = 2.0;
@@ -863,7 +863,7 @@ double ScInterpreter::GetBeta(double fAlpha, double fBeta)
fResult *= fLanczos;
return fResult;
}
-
+
// Same as GetBeta but with logarithm
double ScInterpreter::GetLogBeta(double fAlpha, double fBeta)
{
@@ -939,7 +939,7 @@ double ScInterpreter::GetBetaDistPDF(double fX, double fA, double fB)
if (fB < 1.0 && fX == 1.0)
{
SetError(errIllegalArgument);
- return HUGE_VAL;
+ return HUGE_VAL;
}
else
return 0.0;
@@ -1125,7 +1125,7 @@ double ScInterpreter::GetBetaDist(double fXin, double fAlpha, double fBeta)
return;
}
}
-
+
void ScInterpreter::ScPhi()
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScPhi" );
@@ -1345,7 +1345,7 @@ void ScInterpreter::ScB()
}
}
else
- {
+ {
if ( bIsValidX ) // not(0<p<1)
{
if ( p == 0.0 )
@@ -1353,7 +1353,7 @@ void ScInterpreter::ScB()
else if ( p == 1.0 )
PushDouble( (xe == n) ? 1.0 : 0.0 );
else
- PushIllegalArgument();
+ PushIllegalArgument();
}
else
PushIllegalArgument();
@@ -1536,7 +1536,7 @@ void ScInterpreter::ScLogNormDist() //expanded, see #i100119#
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScLogNormDist" );
BYTE nParamCount = GetByte();
- if ( !MustHaveParamCount( nParamCount, 1, 4))
+ if ( !MustHaveParamCount( nParamCount, 1, 4))
return;
bool bCumulative = nParamCount == 4 ? GetBool() : true; // cumulative
double sigma = nParamCount >= 3 ? GetDouble() : 1.0; // standard deviation
@@ -3014,7 +3014,7 @@ bool ScInterpreter::CalculateSkew(double& fSum,double& fCount,double& vSum,std::
short nParamCount = GetByte();
if ( !MustHaveParamCountMin( nParamCount, 1 ) )
return false;
-
+
fSum = 0.0;
fCount = 0.0;
vSum = 0.0;
@@ -3303,9 +3303,9 @@ void ScInterpreter::CalculateSmallLarge(BOOL bSmall)
}
SCSIZE k = static_cast<SCSIZE>(f);
vector<double> aSortArray;
- /* TODO: using nth_element() is best for one single value, but LARGE/SMALL
- * actually are defined to return an array of values if an array of
- * positions was passed, in which case, depending on the number of values,
+ /* TODO: using nth_element() is best for one single value, but LARGE/SMALL
+ * actually are defined to return an array of values if an array of
+ * positions was passed, in which case, depending on the number of values,
* we may or will need a real sorted array again, see #i32345. */
//GetSortArray(1, aSortArray);
GetNumberSequenceArray(1, aSortArray);
@@ -3324,7 +3324,7 @@ void ScInterpreter::CalculateSmallLarge(BOOL bSmall)
void ScInterpreter::ScLarge()
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScLarge" );
- CalculateSmallLarge(FALSE);
+ CalculateSmallLarge(FALSE);
}
void ScInterpreter::ScSmall()
@@ -3948,7 +3948,7 @@ void ScInterpreter::ScProbability()
void ScInterpreter::ScCorrel()
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScCorrel" );
- // This is identical to ScPearson()
+ // This is identical to ScPearson()
ScPearson();
}
@@ -3958,12 +3958,12 @@ void ScInterpreter::ScCovar()
CalculatePearsonCovar(FALSE,FALSE);
}
-void ScInterpreter::ScPearson()
+void ScInterpreter::ScPearson()
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScPearson" );
CalculatePearsonCovar(TRUE,FALSE);
}
-void ScInterpreter::CalculatePearsonCovar(BOOL _bPearson,BOOL _bStexy)
+void ScInterpreter::CalculatePearsonCovar(BOOL _bPearson,BOOL _bStexy)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::CalculatePearsonCovar" );
if ( !MustHaveParamCount( GetByte(), 2 ) )
@@ -4074,7 +4074,7 @@ void ScInterpreter::ScRSQ()
void ScInterpreter::ScSTEXY()
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScSTEXY" );
- CalculatePearsonCovar(TRUE,TRUE);
+ CalculatePearsonCovar(TRUE,TRUE);
}
void ScInterpreter::CalculateSlopeIntercept(BOOL bSlope)
{