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

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

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

Format the value for 'nice' display

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

Convert to the odds format from probability

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

Convert to probability from the odds format