Hi Jon,
Thanks for the great code and youtube video! I decided to try it out on my own data, and I am a bit confused with the result.
I would expect that GHT() should return 2.6 or so, but I don't understand the output. Could I please ask if you might be able to help me understand how to use this function and how to interpret the output? Is there a way to call GHT() to get the threshold of 2.6?
Here is my data: n.txt
In [65]: d = np.genfromtxt('n.txt')
In [66]: d
Out[66]:
array([2.98497713, 3.53869938, 3.21138755, ..., 3.29136885, 3.02036128,
3.03059972])
In [67]: GHT(d)
Out[67]:
(27376.0,
array([334782.46328283, 334583.29822872, 334583.01013452, ...,
334581.54735645, 334582.1549913 , 334785.61749101]))
In [74]: import matplotlib.pyplot as plt
In [77]: plt.hist(d, bins = 100); plt.show()

Hi Jon,
Thanks for the great code and youtube video! I decided to try it out on my own data, and I am a bit confused with the result.
I would expect that GHT() should return 2.6 or so, but I don't understand the output. Could I please ask if you might be able to help me understand how to use this function and how to interpret the output? Is there a way to call GHT() to get the threshold of 2.6?
Here is my data: n.txt