Linspace
Title
Question
Kindly explain clearly about Linspace?
Python Getting-started-with-ipython 00-01 min 0-10 sec
Answers:
numpy.linspace:Returns number spaces evenly w.r.t interval. Similar to arangebut instead of step it uses sample number.
Example:
numpy.linspace(start, stop, num=50, endpoint = True, retstep = False, dtype = None):
Parameters:
-> start:[optional] start of interval range. By default start = 0
-> stop:end of interval range
-> retstep:If True, return (samples, step). By default retstep = False
-> num:[int, optional] No. of samples to generate
-> dtype:type of output array.
Login to add comment