spacing_functions module¶
Module containing the spacing functions for the binarycpython package. Very under-populated at the moment, but more are likely to come soon
- Tasks:
TODO: add more spacing functions to this module.
-
binarycpython.utils.spacing_functions.
const
(min_bound, max_bound, steps)[source]¶ Samples a range linearly. Uses numpy linspace.
- Parameters
min_bound (
Union
[int
,float
]) – lower bound of rangemax_bound (
Union
[int
,float
]) – upper bound of rangesteps (
int
) – amount of segments between min_bound and max_bound
- Return type
list
- Returns
np.linspace(min_bound, max_bound, steps)