public
Created

acceleration

  • Download Gist
accerlation.py
Python
1 2 3 4 5 6 7 8 9 10
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.