summaryrefslogtreecommitdiff
path: root/zen/basic_math.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:07:03 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:07:03 +0200
commit1aab211abb68b40cefb5024d0be373589c9c8f99 (patch)
tree2da4ead196df622081ac45b29678e92ed30476a3 /zen/basic_math.h
parent9.5 (diff)
downloadFreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.gz
FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.bz2
FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.zip
9.6
Diffstat (limited to 'zen/basic_math.h')
-rwxr-xr-xzen/basic_math.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/basic_math.h b/zen/basic_math.h
index 22f29ca7..1b6b7e97 100755
--- a/zen/basic_math.h
+++ b/zen/basic_math.h
@@ -1,6 +1,6 @@
// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 *
+// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************
@@ -288,9 +288,9 @@ double median(RandomAccessIterator first, RandomAccessIterator last) //note: inv
{
const size_t n = last - first;
if (n == 0)
- return 0;
+ return 0;
- std::nth_element(first, first + n / 2, last); //complexity: O(n)
+ std::nth_element(first, first + n / 2, last); //complexity: O(n)
const double midVal = *(first + n / 2);
if (n % 2 != 0)
@@ -306,7 +306,7 @@ double mad(RandomAccessIterator first, RandomAccessIterator last) //note: invali
//http://en.wikipedia.org/wiki/Median_absolute_deviation
const size_t n = last - first;
if (n == 0)
- return 0;
+ return 0;
const double m = median(first, last);
bgstack15