mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 05:21:35 +08:00
welford mean: remove old comments
This commit is contained in:
committed by
Daniel Agar
parent
ac28c6b7e2
commit
2da10183f3
@@ -104,7 +104,6 @@ public:
|
|||||||
_M2_accum = 0;
|
_M2_accum = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve the mean, variance and sample variance
|
|
||||||
Type mean() const { return _mean; }
|
Type mean() const { return _mean; }
|
||||||
Type variance() const { return _M2 / (_count - 1); }
|
Type variance() const { return _M2 / (_count - 1); }
|
||||||
Type standard_deviation() const { return std::sqrt(variance()); }
|
Type standard_deviation() const { return std::sqrt(variance()); }
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ public:
|
|||||||
_M2_accum.zero();
|
_M2_accum.zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve the mean, variance and sample variance
|
|
||||||
matrix::Vector<Type, N> mean() const { return _mean; }
|
matrix::Vector<Type, N> mean() const { return _mean; }
|
||||||
matrix::Vector<Type, N> variance() const { return _M2.diag() / (_count - 1); }
|
matrix::Vector<Type, N> variance() const { return _M2.diag() / (_count - 1); }
|
||||||
matrix::SquareMatrix<Type, N> covariance() const { return _M2 / (_count - 1); }
|
matrix::SquareMatrix<Type, N> covariance() const { return _M2 / (_count - 1); }
|
||||||
|
|||||||
Reference in New Issue
Block a user