Skip to content

Commit

Permalink
FIXED: missing #include
Browse files Browse the repository at this point in the history
FIXED: jkqtpstatSum() and jkqtpstatSumSqr() did not work, as a non-existing function is called internally
  • Loading branch information
jkriege2 committed Jan 4, 2024
1 parent 591f0df commit 3b598f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/jkqtmath/jkqtpstatbasics.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "jkqtmath/jkqtplinalgtools.h"
#include "jkqtmath/jkqtparraytools.h"
#include "jkqtcommon/jkqtpdebuggingtools.h"
#include "jkqtcommon/jkqtpmathtools.h"


/*! \brief calculates the average of a given data range \a first ... \a last
Expand Down Expand Up @@ -352,7 +353,7 @@ inline double jkqtpstatModifiedSum(InputIt first, InputIt last, FF modifierFunct
*/
template <class InputIt>
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
Expand All @@ -374,7 +375,7 @@ inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr)
*/
template <class InputIt>
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);
}


Expand Down

0 comments on commit 3b598f4

Please sign in to comment.