


% -*- texinfo -*-
% @deftypefn {Function File} {} infoentr_seq (@var{seq_x}, @var{seq_y})
% If just one input, calculates Shannon Information Entropy
% of the sequence x:
% H(X) = @math{\sum_{x \in X} p(x) log2(1/p(x))}
%
% If two inputs, calculates joint entropy of the concurrent
% sequences x and y:
% H(X,Y) = @math{\sum_{x \in X, y \in Y} p(x,y) log2(1/p(x,y))}
%
% @example
% @group
% X=[1, 1, 2, 1, 1];
% infoentr_seq(X)
% infoentr_seq([1,2,2,2,1,1,1,1,1],[1,2,2,2,2,2,1,1,1])
% @end group
% @end example
% @end deftypefn
% @seealso{infogain_seq}