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 d99010f301e4beecb6c6782e936e58c5a18fac5c Author: Pieter Kempeneers <kempe...@gmail.com> Date: Wed Apr 10 12:01:28 2013 +0200 Filter.h: changed boundary for applyFwhm --- src/algorithms/Filter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/Filter.h b/src/algorithms/Filter.h index 02afce4..9d2eb9d 100644 --- a/src/algorithms/Filter.h +++ b/src/algorithms/Filter.h @@ -274,8 +274,8 @@ template<class T> void Filter::applyFwhm(const vector<double> &wavelengthIn, con stddev[index]=fwhm[index]/2.0/sqrt(2*log(2.0));//http://mathworld.wolfram.com/FullWidthatHalfMaximum.html assert(wavelengthOut.size()==fwhm.size()); assert(wavelengthIn.size()==input.size()); - assert(wavelengthIn[0]<wavelengthOut[0]); - assert(wavelengthIn.back()>wavelengthOut.back()); + assert(wavelengthIn[0]<=wavelengthOut[0]); + assert(wavelengthIn.back()>=wavelengthOut.back()); statfactory::StatFactory stat; vector<double> input_fine; vector<double> wavelength_fine; -- 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