mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 08:55:37 +00:00
StatArray: ambiguity removed in mean function
This commit is contained in:
parent
d93f75dac6
commit
b90d410e6b
@ -53,7 +53,6 @@ public:
|
||||
// statistics
|
||||
void bin(Index binSize);
|
||||
T mean(const Index pos = 0, const Index n = -1) const;
|
||||
T mean(void) const;
|
||||
T covariance(const StatArray<T, os> &array, const Index pos = 0,
|
||||
const Index n = -1) const;
|
||||
T covarianceMatrix(const StatArray<T, os> &array, const Index pos = 0,
|
||||
@ -160,8 +159,7 @@ T StatArray<T, os>::mean(const Index pos, const Index n) const
|
||||
{
|
||||
result = this->segment(pos+os, m).redux(&ReducOp::sum<T>);
|
||||
}
|
||||
|
||||
return result/static_cast<double>(n);
|
||||
return result/static_cast<double>(m);
|
||||
}
|
||||
|
||||
template <typename T, Index os>
|
||||
|
Loading…
Reference in New Issue
Block a user