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 <kempe...@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 _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel