removed senseless comments

Change-Id: I38dcca9d513e9122ffca81f448ad3181fd7a9817
This commit is contained in:
Eike Rathke
2013-10-18 21:23:50 +02:00
parent ac0dc48b63
commit 2d40520a57

View File

@@ -3850,7 +3850,7 @@ void ScInterpreter::CalculatePearsonCovar( bool _bPearson, bool _bStexy, bool _b
} }
} }
} }
if (fCount < (_bStexy ? 3.0 : (_bSample ? 2.0 : 1.0))) // fCount==1 is handled by checking denominator later on if (fCount < (_bStexy ? 3.0 : (_bSample ? 2.0 : 1.0)))
PushNoValue(); PushNoValue();
else else
{ {
@@ -3872,7 +3872,7 @@ void ScInterpreter::CalculatePearsonCovar( bool _bPearson, bool _bStexy, bool _b
} }
} }
} }
} // for (SCSIZE i = 0; i < nC1; i++) }
if ( _bPearson ) if ( _bPearson )
{ {
if (fSumSqrDeltaX == 0.0 || ( !_bStexy && fSumSqrDeltaY == 0.0) ) if (fSumSqrDeltaX == 0.0 || ( !_bStexy && fSumSqrDeltaY == 0.0) )
@@ -3882,7 +3882,7 @@ void ScInterpreter::CalculatePearsonCovar( bool _bPearson, bool _bStexy, bool _b
fSumDeltaXDeltaY / fSumSqrDeltaX) / (fCount-2))); fSumDeltaXDeltaY / fSumSqrDeltaX) / (fCount-2)));
else else
PushDouble( fSumDeltaXDeltaY / sqrt( fSumSqrDeltaX * fSumSqrDeltaY)); PushDouble( fSumDeltaXDeltaY / sqrt( fSumSqrDeltaX * fSumSqrDeltaY));
} // if ( _bPearson ) }
else else
{ {
if ( _bSample ) if ( _bSample )