Exoddic.Converter behaviour (Exoddic v1.3.7) View Source

Converter behaviour definition

Link to this section Summary

Callbacks

Format the value for 'nice' display

Convert to the odds format from probability

Convert to probability from the odds format

Link to this section Callbacks

Specs

for_display(float()) :: String.t()

Format the value for 'nice' display

Specs

from_prob(float()) :: float()

Convert to the odds format from probability

Specs

to_prob(float()) :: float()

Convert to probability from the odds format