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

◆ normal_cdf() [2/2]

template<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::normal_cdf ( const T_y &  y,
const T_loc &  mu,
const T_scale &  sigma 
)
inline

Calculates the normal cumulative distribution function for the given variate, location, and scale.

\(\Phi(x) = \frac{1}{\sqrt{2 \pi}} \int_{-\inf}^x e^{-t^2/2} dt\).

Template Parameters
T_ytype of y
T_loctype of mean parameter
T_scaletype of standard deviation parameter
Parameters
yA scalar variate.
muThe location of the normal distribution.
sigmaThe scale of the normal distribution
Returns
The unit normal cdf evaluated at the specified arguments.

Definition at line 38 of file normal_cdf.hpp.