Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
prob_free.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_CONSTRAINT_PROB_FREE_HPP
2
#define STAN_MATH_PRIM_CONSTRAINT_PROB_FREE_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/err.hpp
>
6
#include <
stan/math/prim/fun/logit.hpp
>
7
8
namespace
stan
{
9
namespace
math {
10
26
template
<
typename
T>
27
inline
T
prob_free
(
const
T& y) {
28
check_bounded<T, double, double>(
"prob_free"
,
"Probability variable"
, y, 0,
29
1);
30
return
logit
(y);
31
}
32
33
}
// namespace math
34
}
// namespace stan
35
#endif
stan::math::logit
fvar< T > logit(const fvar< T > &x)
Definition
logit.hpp:14
stan::math::prob_free
T prob_free(const T &y)
Return the free scalar that when transformed to a probability produces the specified scalar.
Definition
prob_free.hpp:27
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
err.hpp
logit.hpp
meta.hpp
stan
math
prim
constraint
prob_free.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.