21 #include "gtest/gtest.h" 29 inline float Expit(
float log_odds) {
30 const float exp_log_odds = std::exp(log_odds);
31 return exp_log_odds / (1.f + exp_log_odds);
34 TEST(SubmapsTest, LogOddsConversions) {
37 EXPECT_NEAR(Expit(
Logit(0.5)), 0.5, 1e-6);
constexpr float kMinProbability
constexpr float kMaxProbability
float Logit(float probability)
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)