prob_free.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_PROB_FREE_HPP
#define STAN_MATH_PRIM_SCAL_FUN_PROB_FREE_HPP
#include <stan/math/prim/scal/err/check_bounded.hpp>
#include <stan/math/prim/scal/fun/logit.hpp>
namespace stan {
namespace math {
template <typename T>
inline
T prob_free(const T y) {
check_bounded<T, double, double>
("prob_free", "Probability variable",
y, 0, 1);
return logit(y);
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
check_bounded.hpp
stan::math::logit
fvar< T > logit(const fvar< T > &x)
Definition: logit.hpp:16
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:26
logit.hpp

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