Implementation issues for Shannon's Channel capacity and entropy
===

Upon partioning a phase space into `Alpha` partitions, it is intended to find how good that partiton is.In this perspective we need to find out the source entropy. Now,I googled a lot but could not find out what is source entropy!!Can anyone explain 

 1. how is Shannon's entropy different from Source entropy and how to implement source entropy?

 2. How to calculate Channel capacity :Below is the code for calculating Shannon's entropy for a data x . Would be obliged if the following code is modified to calculate the channel capacity

    
    x = x(1:end);
        if nargin == 1        
            p = freq(double(x));
        else
            if numel(x) ~= numel(y)
                e = -1;
                warning('Sizes of vector do not match.');
                return;
            end
            y = y(1:end);
            p = joint_freq(double(x), double(y));
        end
    
        % Compute Shannon entropy
        xlogy(repmat(256, [length(p) 1]), p);
        e = -sum(p .* xlogy(repmat(256, [length(p) 1]), p));

 3. What is the difference between Kolgomorov entropy and Shannon's entropy in less technical jargon as it is confusing to understand the significance/implication of the complexity number returned by Kolgomorov complexity.