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
I am running an application that loops over InformationMeasures.get_mutual_information.
If you pass a vector with all elements containing zero (example, Base.zeros()) to this function, the execution of the loop breaks and an error is displayed on the screen.
I suggest if a zeros vector is passed to this function, it just returns a mutual information of 0.0 instead of interrupting the execution of the loop/application.
Thank you!
The text was updated successfully, but these errors were encountered:
This actually happens whenever a vector contains equal elements: could be zeros, ones, or tens, for example.
For a vector named vec, you can check if all elements are equal by using the following function:
allequal(vec) = all(y->y==vec[1],vec)
Hello,
I am running an application that loops over InformationMeasures.get_mutual_information.
If you pass a vector with all elements containing zero (example, Base.zeros()) to this function, the execution of the loop breaks and an error is displayed on the screen.
I suggest if a zeros vector is passed to this function, it just returns a mutual information of 0.0 instead of interrupting the execution of the loop/application.
Thank you!
The text was updated successfully, but these errors were encountered: