Returns linear-spaced bins. Same as numpy.linspace except works with datetime and is faster
Parameters: | min : float, datetime
max : float, datetime
num : integer
|
---|---|
Returns: | out : array
|
Other Parameters: | |
kwargs : dict
|
Notes
This function works on both numbers and datetime objects
Examples
>>> import spacepy.toolbox as tb
>>> tb.linspace(1, 10, 4)
array([ 1., 4., 7., 10.])