Library (python)
-
[neurokit] Biosignal python toolLibrary (python) 2022. 8. 21. 17:10
These day, i analyse biosignal like PPG and ECG. So, i needed to use python package that handles them. There are two famous tools Package - nuerokit - heartpy Neurokit They support many biosignals. I usually use PPG, ECG. PPG This ppg func. docs is broken down into 3 part; Main, Preprocessing and Analysis. Main - ppg_process() - ppg_analyze() - ppg_simulate() - ppg_plot() Preprocessing - ppg_cle..
-
소인수분해 라이브러리 (sympy.ntheory)Library (python) 2022. 4. 7. 15:49
====================== 핵심 소인수분해하는 오픈라이브러리 사용법 from sympy.ntheory import factorint factorint(14719) =============================== 프로젝트하다가 긴 시퀀스 데이터를 이미지화할 일이 생김. 14xxx 되는거 같은데 이거를 이미지화 하려면 WxH로 만들어야 함. 그래서 저 숫자의 소인수들이 궁금한거. 근데 결론적으로 zero-padding 써서 채워서 소인수가 도움되지는 않음 . 어쨋든, 궁금해서 알아봄 옛날에 교육기관 다닐때, 소인수 분해 (prime factorization)하는 거 코드로 raw로 짜보는게 과제?였었는데... 추억이넵 그때 아마 Big O 가 (n) 나온듯 좀 무식한 방법으로 짯던 기..