Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np evenly spaced array

np.linspace(2.0, 3.0, num=5)
#[2.  , 2.25, 2.5 , 2.75, 3.  ]

np.linspace(2.0, 3.0, num=5, endpoint=False)
#[2. ,  2.2,  2.4,  2.6,  2.8]
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #np #evenly #spaced #array
ADD COMMENT
Topic
Name
7+6 =