1
$\begingroup$

0

I write my thesis on the topic of texture analysis and with the help of MATLAB I made some calculations, including on entropy. In the explanation of the formulas, I used the entropy formula used by the MATLAB and I was asked by the judges why I use a logarithm base 2 instead of natural logarithm.

Based on my previous searches, I got the answer that MATLAB uses the logarithm base 2 because information was thought in terms of bits, hence the magical number, 2.

So, my question is, why MATLAB use the base 2 log over natural log? What is the is the advantage of log 2 over log e in this case?

$\endgroup$
  • 1
    $\begingroup$ I don't think your question has an answer. Some people prefer measuring their information in bits, and others in nats. It doesn't make a huge difference, since these measures only differ by a constant factor. $\endgroup$ – Yuval Filmus May 4 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.