Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::welford_covar_estimator Class Reference

Detailed Description

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_
 

The documentation for this class was generated from the following file: