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

◆ mean() [2/2]

template<typename T , require_container_t< T > * = nullptr>
return_type_t< T > stan::math::mean ( const T &  m)
inline

Returns the sample mean (i.e., average) of the coefficients in the specified std vector, vector, row vector, or matrix.

Template Parameters
Ttype of the matrix
Parameters
mSpecified std vector, vector, row vector, or matrix.
Returns
Sample mean of container coefficients.

Definition at line 22 of file mean.hpp.