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

◆ cauchy_lpdf() [2/3]

template<bool propto, typename T_y , typename T_loc , typename T_scale , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y, T_loc, T_scale > * = nullptr>
return_type_t< T_y, T_loc, T_scale > stan::math::cauchy_lpdf ( const T_y &  y,
const T_loc &  mu,
const T_scale &  sigma 
)

The log of the Cauchy density for the specified scalar(s) given the specified location parameter(s) and scale parameter(s).

y, mu, or sigma can each either be scalar a vector. Any vector inputs must be the same length.

The result log probability is defined to be the sum of the log probabilities for each observation/mu/sigma triple.

Template Parameters
T_ytype of scalar outcome
T_loctype of location
T_scaletype of scale
Parameters
y(Sequence of) scalar(s).
mu(Sequence of) location(s).
sigma(Sequence of) scale(s).
Returns
The log of the product of densities.

Definition at line 43 of file cauchy_lpdf.hpp.