DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy diff
x = np.array([1, 2, 4, 7, 0]) np.diff(x) array([ 1, 2, 3, -7]) np.diff(x, n=2) array([ 1, 1, -10])
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#numpy
#diff
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit