arange_numvalues¶
- emlib.numpytools.arange_numvalues(step, numvalues, start=0.0)[source]¶
Construct an array of numvalues starting from start with step
- Parameters:
step (
float) – the step between each valuenumvalues (
int) – the number of values of the arraystart – the starting value
- Return type:
ndarray- Returns:
the new array
Example
>>> arange_numvalues(0.1, 10) array([0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
>>> arange_numvalues(0.1, 20, 10) array([10. , 10.01, 10.02, 10.03, 10.04, 10.05, 10.06, 10.07, 10.08, 10.09, 10.1 , 10.11, 10.12, 10.13, 10.14, 10.15, 10.16, 10.17, 10.18, 10.19])