1 #ifndef STAN__PROB__WELFORD__COVAR__ESTIMATOR__BETA
2 #define STAN__PROB__WELFORD__COVAR__ESTIMATOR__BETA
16 _m2(Eigen::MatrixXd::Zero(n, n))
29 Eigen::VectorXd delta(q -
_m);
31 _m2 += (q -
_m) * delta.transpose();
void sample_covariance(Eigen::MatrixXd &covar)
boost::math::tools::promote_args< T >::type mean(const std::vector< T > &v)
Returns the sample mean (i.e., average) of the coefficients in the specified standard vector...
welford_covar_estimator(int n)
void sample_mean(Eigen::VectorXd &mean)
void add_sample(const Eigen::VectorXd &q)