PromEx.BucketGenerator.exponential-exclamation-mark

You're seeing just the function exponential-exclamation-mark, go back to PromEx.BucketGenerator module for more information.
Link to this function

exponential!(start, factor, num_buckets)

View Source

Specs

exponential!(start :: number(), factor :: number(), num_buckets :: number()) ::
  [non_neg_integer()]

Create an exponential set of buckets based on the provided parameters.

Examples

iex> PromEx.BucketGenerator.exponential!(1, 4, 10)
[1, 4, 16, 64, 256, 1024, 4096, 16384, 65536, 262144]

iex> PromEx.BucketGenerator.exponential!(1, 2, 10)
[1, 2, 4, 8, 16, 32, 64, 128, 256, 512]