Automatic Differentiation
 
Loading...
Searching...
No Matches
variance.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

var stan::math::internal::calc_variance (size_t size, const var *dtrs)
 
var stan::math::variance (const std::vector< var > &v)
 Return the sample variance of the specified standard vector.
 
template<typename EigMat , require_eigen_vt< is_var, EigMat > * = nullptr>
var stan::math::variance (const EigMat &m)
 Return the sample variance of the specified vector, row vector, or matrix.
 
template<typename Mat , require_var_matrix_t< Mat > * = nullptr>
var stan::math::variance (const Mat &x)
 Return the sample variance of the var_value matrix Raise domain error if size is not greater than zero.