Create a gist now

Instantly share code, notes, and snippets.

acceleration
import numpy as np
def acceleration(data):
SSD = np.sum((data.mean() - data)**3)
SCD = np.sum((data.mean() - data)**2)
# catch to make sure SCD isn't zero
if SCD == 0.0:
SCD = 1e-12
acc = SSD / (6 * SCD**1.5)
return acc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment