View Source Rollex.Histogram protocol (Rollex v0.7.1)

Link to this section Summary

Functions

Returns a map containing the odds for every possible result for a token

Link to this section Types

Specs

histogram() :: %{required(result :: integer()) => percent_odds :: float()}

Specs

t() :: term()

Link to this section Functions

Link to this function

evaluate(token, current_effort)

View Source

Specs

evaluate(token :: map(), current_effort :: non_neg_integer()) ::
  {histogram(), effort_count :: non_neg_integer()}

Returns a map containing the odds for every possible result for a token