unidip
unidip copied to clipboard
Return same values when running recursively
I'm looping through alpha values to test the amount of peaks each finds, and I get the same output every time. I get different values if I run each alpha individually.
for i in [0.06,0.055,0.05,0.04]:#np.arange(0.07,0.05,-0.002): data = np.msort(np.array(analysisuncomp).flatten()) print(i) print(UniDip(data,alpha=i,ntrials=500).run())
Output: 0.06 [(6, 127), (135, 181), (196, 313), (370, 5683), (5685, 10540), (10545, 30064)] 0.055 [(6, 127), (135, 181), (196, 313), (370, 5683), (5685, 10540), (10545, 30064)] 0.05 [(6, 127), (135, 181), (196, 313), (370, 5683), (5685, 10540), (10545, 30064)] 0.04