2 // Inclusion of standard header file
9 // Inclusion of local header file
11 #include "islibfunc.hpp"
17 // Definition of function
33 throw_if ( std::invalid_argument ( "islib::logit: is_less_than ( x_, 0.0, std::numeric_limits < double >::epsilon () ) || is_greater_than ( x_, 1.0, std::numeric_limits < double >::epsilon () )" ), is_less_than ( x_, 0.0, std::numeric_limits < double >::epsilon () ) || is_greater_than ( x_, 1.0, std::numeric_limits < double >::epsilon () ) );
45 return std::log ( x / ( 1.0 - x ) );