34 #ifndef OCTOMAP_UTILS_H_ 35 #define OCTOMAP_UTILS_H_ 43 return (
float) log(probability/(1-probability));
48 return 1. - ( 1. / (1. + exp(logodds)));
double probability(double logodds)
compute probability from logodds:
float logodds(double probability)
compute log-odds from probability: