spectrochempy.geomspace
- geomspace(start, stop, num=50, endpoint=True, dtype=None, **kwargs)[source]
Return numbers spaced evenly on a log scale (a geometric progression).
This is similar to
logspace
, but with endpoints specified directly. Each output sample is a constant multiple of the previous.- Parameters:
start (number) – The starting value of the sequence.
stop (number) – The final value of the sequence, unless
endpoint
is False. In that case,num + 1
values are spaced over the interval in log-space, of which all but the last (a sequence of lengthnum
) are returned.num (int, optional) – Number of samples to generate. Default is 50.
endpoint (bool, optional) – If true,
stop
is the last sample. Otherwise, it is not included. Default is True.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:
geomspace –
num
samples, equally spaced on a log scale.