Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ variance() [7/7]

template<typename Mat , require_var_matrix_t< Mat > * = nullptr>
var stan::math::variance ( const Mat &  x)
inline

Return the sample variance of the var_value matrix Raise domain error if size is not greater than zero.

Template Parameters
Matinput matrix type
Parameters
[in]xa input
Returns
sample variance of input

Definition at line 79 of file variance.hpp.