| POP_REJKURT | Rejection of artifact in a dataset using kurtosis of activity (i.e. to detect peaky distribution of activity). | 
| Usage: | >> [OUTEEG, locthresh, globthresh, nrej] = = pop_rejkurt( INEEG, typerej, electrodes, locthresh, globthresh, superpose, reject, vistype); | 
| Inputs: | |
| INEEG    | input dataset | 
| typerej    | type of rejection (0 = independant components; 1 = eeg data). Default is 1. For independant components, before thresholding, the activity is normalized for each component. | 
| electrodes    | [e1 e2 ...] electrodes (number) to take into consideration for rejection | 
| locthresh    | activity kurtosis thresholds in terms of standard-dev. | 
| globthresh    | global threshold (for all electrodes of a trial). | 
| 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 0. | 
| vistype    | visualization type. 0 is rejectrials and 1 is 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, eeglab, eegplot |