MCPcopy Create free account
hub / github.com/RoboJackets/software-training / toLogOdds

Function toLogOdds

reference_solutions/mapping/src/mapping_node.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35{
36
37double toLogOdds(double prob)
38{
39 return std::log(prob / (1.0 - prob));
40}
41
42double fromLogOdds(double log_odds)
43{

Callers 2

MappingNodeMethod · 0.70
UpdateProbabilityMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected