Stan Math Library  2.15.0
reverse mode automatic differentiation
student_t_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_PROB_STUDENT_T_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_STUDENT_T_LOG_HPP
3 
6 
7 namespace stan {
8  namespace math {
9 
37  template <bool propto, typename T_y, typename T_dof,
38  typename T_loc, typename T_scale>
40  student_t_log(const T_y& y, const T_dof& nu, const T_loc& mu,
41  const T_scale& sigma) {
42  return student_t_lpdf<propto, T_y, T_dof,
43  T_loc, T_scale>(y, nu, mu, sigma);
44  }
45 
49  template <typename T_y, typename T_dof, typename T_loc, typename T_scale>
50  inline
52  student_t_log(const T_y& y, const T_dof& nu, const T_loc& mu,
53  const T_scale& sigma) {
54  return student_t_lpdf<T_y, T_dof, T_loc, T_scale>(y, nu, mu, sigma);
55  }
56 
57  }
58 }
59 #endif
boost::math::tools::promote_args< typename scalar_type< T1 >::type, typename scalar_type< T2 >::type, typename scalar_type< T3 >::type, typename scalar_type< T4 >::type, typename scalar_type< T5 >::type, typename scalar_type< T6 >::type >::type type
Definition: return_type.hpp:27
return_type< T_y, T_dof, T_loc, T_scale >::type student_t_lpdf(const T_y &y, const T_dof &nu, const T_loc &mu, const T_scale &sigma)
The log of the Student-t density for the given y, nu, mean, and scale parameter.
return_type< T_y, T_dof, T_loc, T_scale >::type student_t_log(const T_y &y, const T_dof &nu, const T_loc &mu, const T_scale &sigma)
The log of the Student-t density for the given y, nu, mean, and scale parameter.

     [ Stan Home Page ] © 2011–2016, Stan Development Team.