powRangeByStep

fathon.fathonUtils.powRangeByStep(start, end, step=1, base=2)

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

Parameters:
  • start (int) – Smallest element.
  • end (int) – Biggest element.
  • step (int) – Step between two consecutive exponents (default : 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.powRangeByStep(10, 1000, step=2, base=3)