The following Matlab project contains the source code and Matlab examples used for permutation entropy.
% Calculate the permutation entropy
% Input: y: time series;
% m: order of permuation entropy
% t: delay time of permuation entropy,
% pe: permuation entropy
% hist: the histogram for the order distribution
%Ref: G Ouyang, J Li, X Liu, X Li, Dynamic Characteristics of Absence EEG Recordings with Multiscale Permutation %
% Entropy Analysis, Epilepsy Research, doi: 10.