Need Help in C++ ...

Discussion in 'C++' started by techticks, Oct 21, 2010.

  1. techticks

    techticks New Member

    Oct 21, 2010
    Likes Received:
    Trophy Points:
    Hello and Assalam O Elikum Every one, My name is Mustafa, and i am looking for a help in development of a code...
    the equation i have is

    H(X) = p(X1) log2(1/p(X1)) + ... + p(Xn) log2(1/p(Xn)).

    Its a entropy of the message equation
    details can be take from


    now i have stuck up at the input stage, where we normally have to take inputs like 1/2, 3/4, or 5/2 etc ....
    and the second variable is n.
    where n decides the number of inputs to be taken.....

    its basically a probability program.

    Can any one Help me for this ?

    I will be really thank full..

    Muhammad Hassaan Mustafa

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice