Stan Math Library
4.9.0
Automatic Differentiation
|
Definition at line 10 of file welford_covar_estimator.hpp.
#include <welford_covar_estimator.hpp>
Public Member Functions | |
welford_covar_estimator (int n) | |
void | restart () |
void | add_sample (const Eigen::VectorXd &q) |
int | num_samples () |
void | sample_mean (Eigen::VectorXd &mean) |
void | sample_covariance (Eigen::MatrixXd &covar) |
Protected Attributes | |
double | num_samples_ |
Eigen::VectorXd | m_ |
Eigen::MatrixXd | m2_ |