DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
to create an array with values that are spaced linearly in a specified interval
np.linspace(0, 10, num=5) array([ 0. , 2.5, 5. , 7.5, 10. ])
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#create
#array
#values
#spaced
#linearly
#interval
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit