You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment I am rewriting the package for python 3 and have come across a step in the biocoherence.py function that I don't quite understand:
In line 103 in bicoherence.py: bic = abs(bic)**2 / ((Pyy * np.transpose(Pyy)) * mask)
Why is the absolute value determined from the expected value of the complex bispectrum (bic)? The squaring should surely elemenate the root operation from the denominator of the Haubrich normalization, so that the new bic should actually be squared as well?
Is this already for the visualization step or am I wrong in assuming that the normalized bispectrum is complex?
Best Regards
true
The text was updated successfully, but these errors were encountered:
Hey there!
At the moment I am rewriting the package for python 3 and have come across a step in the biocoherence.py function that I don't quite understand:
In line 103 in bicoherence.py:
bic = abs(bic)**2 / ((Pyy * np.transpose(Pyy)) * mask)
Why is the absolute value determined from the expected value of the complex bispectrum (bic)? The squaring should surely elemenate the root operation from the denominator of the Haubrich normalization, so that the new bic should actually be squared as well?
Is this already for the visualization step or am I wrong in assuming that the normalized bispectrum is complex?
Best Regards
true
The text was updated successfully, but these errors were encountered: