FIXED: missing #include

FIXED: jkqtpstatSum() and jkqtpstatSumSqr() did not work, as a non-existing function is called internally
This commit is contained in:
jkriege2 2024-01-05 00:01:11 +01:00
parent 591f0dfe64
commit 3b598f49e8

View File

@ -38,6 +38,7 @@
#include "jkqtmath/jkqtplinalgtools.h" #include "jkqtmath/jkqtplinalgtools.h"
#include "jkqtmath/jkqtparraytools.h" #include "jkqtmath/jkqtparraytools.h"
#include "jkqtcommon/jkqtpdebuggingtools.h" #include "jkqtcommon/jkqtpdebuggingtools.h"
#include "jkqtcommon/jkqtpmathtools.h"
/*! \brief calculates the average of a given data range \a first ... \a last /*! \brief calculates the average of a given data range \a first ... \a last
@ -352,7 +353,7 @@ inline double jkqtpstatModifiedSum(InputIt first, InputIt last, FF modifierFunct
*/ */
template <class InputIt> template <class InputIt>
inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr) { inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr) {
return jkqtpstatSum(first, last, &jkqtp_identity<double>, Noutput); return jkqtpstatModifiedSum(first, last, &jkqtp_identity<double>, Noutput);
} }
/*! \brief calculates the sum of squares of a given data range \a first ... \a last /*! \brief calculates the sum of squares of a given data range \a first ... \a last
@ -374,7 +375,7 @@ inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr)
*/ */
template <class InputIt> template <class InputIt>
inline double jkqtpstatSumSqr(InputIt first, InputIt last, size_t* Noutput=nullptr) { inline double jkqtpstatSumSqr(InputIt first, InputIt last, size_t* Noutput=nullptr) {
return jkqtpstatSum(first, last, &jkqtp_sqr<double>, Noutput); return jkqtpstatModifiedSum(first, last, &jkqtp_sqr<double>, Noutput);
} }