func_FE_ShannEn
Versión 1.0.0 (1,55 KB) por
Golnaz Baghdadi
This function calculates Shannon Entropy
% This function calculates Shannon Entropy based on the following algorithm
%------------------------------------------------------------------------------------
% - The number of n intervals of the signal is selected.
% - The width of each interval is calculated from the formula (xmax-xmin)/n.
% - The number of points of the signal that are placed in each interval is counted: Ni i = 1: n
% - Probability pi = Ni / N is calculated.
% - Shannon entropy is calculated using the formula H=-sum(pi.log2(pi)) i=1->n.
%------------------------------------------------------------------------------------
%
% Input parameters:
% - signal: Input signal must be a vector with dimension N
% - n: number of devision %
%
% Output:
% - ShannEn: Shannon entropy value
% Author: Golnaz Baghdadi
% -------------------------------------------------------------------------------
Citar como
Golnaz Baghdadi (2024). func_FE_ShannEn (https://www.mathworks.com/matlabcentral/fileexchange/98534-func_fe_shannen), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2020a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |