1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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