diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:07:03 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:07:03 +0200 |
commit | 1aab211abb68b40cefb5024d0be373589c9c8f99 (patch) | |
tree | 2da4ead196df622081ac45b29678e92ed30476a3 /zen/basic_math.h | |
parent | 9.5 (diff) | |
download | FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.gz FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.bz2 FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.zip |
9.6
Diffstat (limited to 'zen/basic_math.h')
-rwxr-xr-x | zen/basic_math.h | 8 |
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); |