powRangeByCount

fathon.fathonUtils.powRangeByCount(start, end, count=-1, base=2)

Array of elements given by base raised to linearly separated exponents.

Parameters:
  • start (int) – Smallest element.
  • end (int) – Biggest element.
  • count (int) – Number of elements (default : end - start + 1).
  • base (int) – Base of the exponential (default : 2).
Returns:

Array of elements given by base raised to linearly separated exponents.

Return type:

numpy ndarray

Usage examples

from fathon import fathonUtils as fu

#elements given by `base` raised to linearly separated exponents
a = fu.powRangeByCount(10, 1000, base=3, count=42)