Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334
  1. import sys, os, math, time
  2. import numpy as np
  3. import pandas as pd
  4. '''
  5. wavacc.py for interpolate accelerometer data and extract feature as stroke.
  6. Denosing step is not implemented this module. See addValidDetection function in coordsi.py for denoising.
  7. '''
  8. def interpolation(df):
  9. try:
  10. #implement data here
  11. except Exception as e:
  12. print(e)
  13. return df
  14. def decomposition(df):
  15. try:
  16. #implemnet decompositino with wavelet transform here
  17. except Exception as e:
  18. print(e)
  19. return df
  20. def getStroke(df):
  21. try:
  22. #implement get stroke here
  23. except Exception as e:
  24. print(e)
  25. return df
  26. def mergeToDataFrame(df):
  27. try:
  28. #implement merge to dataframe here
  29. except Exception as e:
  30. print(e)
  31. return df