POP_REJKURT Rejection of artifact in a dataset using kurtosis of activity (i.e. to detect peaky distribution of activity).


Usage: >> pop_rejkurt( INEEG, typerej) % pop-up interative window mode
>> [OUTEEG, locthresh, globthresh, nrej] = = pop_rejkurt( INEEG, typerej, elec_comp, locthresh, globthresh, superpose, reject, vistype);

Graphical interface:
"Electrode"   
[edit box] electrodes or components (number) to take into consideration for rejection. Same as the 'elec_comp' parameter from the command line.
"Single-channel limit"   
[edit box] pkurtosis limit in terms of standard-dev. Same as 'locthresh' command line parameter.
"All-channel limit"   
[edit box] kurtosis limit in terms of standard-dev (all channel regrouped). Same as 'globthresh' command line parameter.
"Display with previous rejection"   
[edit box] can be either YES or NO. This edit box corresponds to the command line input option 'superpose'.
"Reject marked trials"   
[edit box] can be either YES or NO. This edit box corresponds to the command line input option 'reject'.
"visualization type"   
[edit box] can be either REJECTRIALS or EEGPLOT. This edit box corresponds to the command line input option 'vistype'.

Inputs:
INEEG   
input dataset
typerej   
type of rejection (0 = independent components; 1 = eeg data). Default is 1. For independent components, before thresholding, the activity is normalized for each component.
elec_comp   
[e1 e2 ...] electrodes (number) to take into consideration for rejection
locthresh   
activity kurtosis limit in terms of standard-dev.
globthresh   
global limit (for all channel). Same unit as above.
superpose   
0=do not superpose pre-labelling with previous pre-labelling (stored in the dataset). 1=consider both pre-labelling (using different colors). Default is 0.
reject   
0=do not reject labelled trials (but still store the labels. 1=reject labelled trials. Default is 1.
vistype   
visualization type. 0 calls rejstatepoch() and 1 calls eegplot() default is 0.

Outputs:
OUTEEG   
output dataset with updated kurtosis array
locthresh   
electrodes probability of activity thresholds in terms of standard-dev.
globthresh   
global threshold (where all electrode activity are regrouped).
nrej   
number of rejected sweeps

Author: Arnaud Delorme, CNL / Salk Institute, 2001

See also: rejkurt(), rejstatepoch(), pop_rejepoch, eegplot(), eeglab()

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

Back to functions