alephcero / OSCstats

Project to read cellphone sensors using OSC and get stats
GNU General Public License v3.0
1 stars 0 forks source link

check when make sqrt #4

Closed alephcero closed 7 years ago

alephcero commented 7 years ago

change from:

dataClip['V'] = (dataClip.accelerationX-dataClip.accelerationXShift) 2 + \ (dataClip.accelerationY-dataClip.accelerationYShift) 2 + \ (dataClip.accelerationZ-dataClip.accelerationZShift) ** 2

to:

dataClip['V'] = np.sqrt((dataClip.accelerationX-dataClip.accelerationXShift) 2 + \ (dataClip.accelerationY-dataClip.accelerationYShift) 2 + \ (dataClip.accelerationZ-dataClip.accelerationZShift) ** 2)