daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Nov 23rd, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def difference(dataset):
  2.     diff = list()
  3.     for i in range(1, len(dataset)):
  4.         value = dataset[i] - dataset[i - 1]
  5.         diff.append(value)
  6.     return numpy.array(diff)
RAW Paste Data
Top