autoppl
v0.8
A C++ template library for probabilistic programming
|
#include <welford.hpp>
Public Member Functions | |
WelfordVar (size_t n_params) | |
template<class MatType > | |
void | update (const MatType &x) |
const auto & | get_variance () const |
size_t | get_n_samples () const |
void | reset () |
Estimates sample variance for n-dimensional data using Welford's online algorithm
|
inline |
|
inline |
|
inline |
|
inline |
Resets sample mean, sample variance, and number of samples to 0 Equivalent to constructing a new object of this type.
|
inline |