Exoddic.Converter behaviour (Exoddic v1.3.8)

View Source

Converter behaviour definition

Summary

Callbacks

Format the value for 'nice' display

Convert to the odds format from probability

Convert to probability from the odds format

Callbacks

for_display(float)

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

Format the value for 'nice' display

from_prob(float)

@callback from_prob(float()) :: float()

Convert to the odds format from probability

to_prob(float)

@callback to_prob(float()) :: float()

Convert to probability from the odds format