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, unlessendpointis set to False. In that case, the sequence consists of all but the last ofnum + 1evenly spaced samples, so thatstopis excluded. Note that the step size changes whenendpointis False.num(int): number of samples to generate.endpoint(bool, optional, default=True): If True,stopis the last sample. Otherwise, it is not included.unit(astropy unit or string, optional, default=None): unit corresponding to the passed values.