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

Summary

Functions

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

Types

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

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