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

Link to this section Summary

Functions

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

Link to this section Types

@type histogram() :: %{required(result :: integer()) => percent_odds :: float()}
@type t() :: term()

Link to this section Functions

Link to this function

evaluate(token, current_effort)

View Source
@spec 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