A entropy hub by pytorch
now in working
Just in beginning
A sample for sample entropy:
l: signal
m: windows length
r: threshold
e.g:
import torch
l = torch.randn(1000)
m = 2
r = torch.std(l)*0.25
sampEn(l,m,r)
'''
For batch Data (B,C,H)
The return shape should be (B,C)
'''
l = torch.randn([5,5,20])
sampEn_batch(l,m,r)