Commit b4a9d96d authored by Oleg Popkov's avatar Oleg Popkov Committed by Christoph Cullmann
Browse files

Fix usage of the corrected and uncorrected SD

The corrected and ucorrected standard deviation calculations were
mixed up.
parent 05b27951
......@@ -1515,11 +1515,11 @@ void KCalculator::slotStatStdDevclicked() {
if (shift_mode_) {
// std (n-1)
core.StatStdDeviation(KNumber::Zero);
core.StatStdSample(KNumber::Zero);
pbShift->setChecked(false);
} else {
// std (n)
core.StatStdSample(KNumber::Zero);
core.StatStdDeviation(KNumber::Zero);
}
updateDisplay(UPDATE_FROM_CORE);
......@@ -1533,10 +1533,8 @@ void KCalculator::slotStatStdDevclicked() {
void KCalculator::slotStatMedianclicked() {
if (!shift_mode_) {
// std (n-1)
core.StatMedian(KNumber::Zero);
} else {
// std (n)
core.StatMedian(KNumber::Zero);
pbShift->setChecked(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment