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