Rollex.Histogram protocol (Rollex v0.12.0)

View Source

Summary

Functions

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

Types

histogram()

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

t()

@type t() :: term()

Functions

evaluate(token, current_effort)

@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