rmantena / Myo_gestureArmBand_experiments

Custom gesture recognition with the Myo Armband by implementing scikit-learn machine learning models
https://www.youtube.com/watch?v=StcFUQya6qw
12 stars 4 forks source link

What does this function mean? #1

Closed b3326023 closed 6 years ago

b3326023 commented 6 years ago

Can you explain what is the mean of this function? Why to sum array[1] - array[0] ?

def wl(array):
    sum = 0
    for a in range(0,len(array)-1):
        sum =+ array[0+1] - array[0]
    return sum
rmantena commented 6 years ago

I tried to implement the below function from linked research paper. Seems like I made a terrible mistake.

image

http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7748960

rmantena commented 6 years ago

Fixed with https://github.com/rmantena/Myo_gestureArmBand_experiments/commit/9318fe68bf305623a70a0eeeae223f53b802e736