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

Categorie

Richiesto:

il 10 Feb 2014

Risposto:

il 24 Mar 2015

Community Treasure Hunt

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

Start Hunting!

Translated by