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

◆ loglogistic_lpdf() [1/2]

template<bool propto, typename T_y , typename T_scale , typename T_shape , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y, T_scale, T_shape > * = nullptr>
return_type_t< T_y, T_scale, T_shape > stan::math::loglogistic_lpdf ( const T_y &  y,
const T_scale &  alpha,
const T_shape &  beta 
)

The log of the loglogistic density for the specified scalar(s) given the specified scales(s) and shape(s).

y, alpha, or beta can each be either a scalar or 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/scale/shape triple.

Template Parameters
T_ytype of scalar.
T_scaletype of scale parameter.
T_shapetype of shape parameter.
Parameters
y(Sequence of) scalar(s).
alpha(Sequence of) scale parameter(s) for the loglogistic distribution.
beta(Sequence of) shape parameter(s) for the loglogistic distribution.
Returns
The log of the product of the densities.
Exceptions
std::domain_errorif any of the inputs are not positive and finite.

Definition at line 45 of file loglogistic_lpdf.hpp.