![]() |
Stan
2.5.0
probability, sampling & optimization
|
#include <vector>#include <boost/math/tools/promotion.hpp>#include <stan/math/matrix/Eigen.hpp>#include <stan/math/matrix/mean.hpp>#include <stan/math/error_handling/matrix/check_nonzero_size.hpp>Go to the source code of this file.
Namespaces | |
| stan | |
| Probability, optimization and sampling library. | |
| stan::math | |
| Matrices and templated mathematical functions. | |
Functions | |
| template<typename T > | |
| boost::math::tools::promote_args < T >::type | stan::math::variance (const std::vector< T > &v) |
| Returns the sample variance (divide by length - 1) of the coefficients in the specified standard vector. More... | |
| template<typename T , int R, int C> | |
| boost::math::tools::promote_args < T >::type | stan::math::variance (const Eigen::Matrix< T, R, C > &m) |
| Returns the sample variance (divide by length - 1) of the coefficients in the specified column vector. More... | |