mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
FIXED: missing #include
FIXED: jkqtpstatSum() and jkqtpstatSumSqr() did not work, as a non-existing function is called internally
This commit is contained in:
parent
591f0dfe64
commit
3b598f49e8
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user