PromEx.BucketGenerator.linear-exclamation-mark
You're seeing just the function
linear-exclamation-mark
, go back to PromEx.BucketGenerator module for more information.
Specs
linear!(start :: number(), step :: number(), num_buckets :: number()) :: [ non_neg_integer() ]
Create a linear set of buckets based on the provided parameters.
Examples
iex> PromEx.BucketGenerator.linear!(10, 10, 10)
[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
iex> PromEx.BucketGenerator.linear!(0, 250, 11)
[0, 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500]