Linspace.init (function)
def __init__(self, start, stop, num, endpoint=True, unit=None)
This is available as a top-level convenience function as nparray.linspace.
Arguments
start
(int or float): the starting point of the sequence.stop
(int or float): the ending point of the sequence, unlessendpoint
is set to False. In that case, the sequence consists of all but the last ofnum + 1
evenly spaced samples, so thatstop
is excluded. Note that the step size changes whenendpoint
is False.num
(int): number of samples to generate.endpoint
(bool, optional, default=True): If True,stop
is the last sample. Otherwise, it is not included.unit
(astropy unit or string, optional, default=None): unit corresponding to the passed values.