spectrochempy.arangeο
- arange(start=0, stop=None, step=None, dtype=None, **kwargs)[source]ο
Return evenly spaced values within a given interval.
Values are generated within the half-open interval [start, stop).
- Parameters:
start (number, optional) β Start of interval. The interval includes this value. The default start value is 0.
stop (number) β End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out. It might be prefereble to use inspace in such case.
step (number, optional) β Spacing between values. For any output out, this is the distance between two adjacent values, out[i+1] - out[i]. The default step size is 1. If step is specified as a position argument, start must also be given.
dtype (dtype) β The type of the output array. If dtype is not given, infer the data type from the other input arguments.
**kwargs β Keywords argument used when creating the returned object, such as units, name, title, β¦
- Returns:
arange β Array of evenly spaced values.
See also
linspaceEvenly spaced numbers with careful handling of endpoints.
Examples
>>> scp.arange(1, 20.0001, 1, units='s', name='mycoord') NDDataset: [float64] s (size: 20)