POP_JOINTPROB Rejection of artifact in a dataset using joint probability (i.e. probability of activity).

Usage: >> [OUTEEG, locthresh, globthresh, nrej] = = pop_jointprob( 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   
electrodes probability of activity thresholds in terms of standard-dev.
globthresh   
global threshold (where all electrode activity are regrouped).
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 joint probability 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: jointprob, eeglab, eegplot

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

Back to functions