ENTROPY Calculation of entropy of a 1D, 2D or 3D array and rejection of odd last dimension values of the input data array using the discrete entropy of the values in that dimension (and using the probability distribution of all columns).

Usage: >> [entropy rej] = entropy( signal, threshold, entropy, normalize, discret);

Inputs:
signal   
one dimensional column vector of data values, two dimensional column vector of values of size sweeps x frames or three dimensional array of size component x sweeps x frames. If three dimensional, all components are treated independantly.
threshold   
Absolute threshold. If normalization is used then the threshold is expressed in standard deviation of the mean. 0 means no threshold.
entropy   
pre-computed entropy (only perform thresholding). Default is the empty array [].
normalize   
0 = do not not normalize entropy. 1 = normalize entropy. Default is 0.
discret   
discretization variable for calculation of the discrete probability density. Default is 1000 points.

Outputs:
entropy   
entropy (normalized or not) of the single data trials (same size as signal without the last dimension)
rej   
rejection matrix (0 and 1, size of number of rows)

Author: Arnaud Delorme, CNL / Salk Institute, 2001

See also: realproba

See the matlab file entropy.m (may require other functions)

Back to functions