[pktools] 205/375: value in percentiles in StatFactory based on maximum instead of median
Bas Couwenberg
sebastic at xs4all.nl
Wed Dec 3 21:54:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch upstream-master
in repository pktools.
commit e78dab7fb9cc0cd964e4953a1d25e8714cfbc9f9
Author: Pieter Kempeneers <kempenep at gmail.com>
Date: Mon Mar 24 11:40:18 2014 +0100
value in percentiles in StatFactory based on maximum instead of median
---
src/algorithms/StatFactory.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/algorithms/StatFactory.h b/src/algorithms/StatFactory.h
index ed053a7..e4bcebb 100644
--- a/src/algorithms/StatFactory.h
+++ b/src/algorithms/StatFactory.h
@@ -754,8 +754,10 @@ template<class T> void StatFactory::percentiles (const std::vector<T>& input, t
inputBin.push_back(*vit);
++vit;
}
- if(inputBin.size())
- output[ibin]=median(inputBin);
+ if(inputBin.size()){
+ /* output[ibin]=median(inputBin); */
+ output[ibin]=max(inputBin);
+ }
}
if(!filename.empty()){
std::ofstream outputfile;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git
More information about the Pkg-grass-devel
mailing list