Informationain Gain in Matlab

Hello!
Attached is a formula for calculating information gain of a text file.
Can anyone please tell me that how can we find probabilities and log in matlab?
Is there any built-in function(s)?
Actually I have to transform attached formula in loop in matlab.
Thanks a lot

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by