| COMPVAR | Project selected components and compute the variance of the original signal they account for. |
| Usage: | >> [proj, variance] = compvar( rawdata, ica_act, winv, components); |
| Inputs: | |
rawdata |
2D(channels x points) or 3D(channels x frames x trials) data array. |
ica_act |
2D(channels x points) or 3D(channels x frames x trials) ica activity array. It can also be a cell array with the sphere and the weight matrix { sphere weight } that will be used to recompute the ICA activity. |
frames |
number of points per epoch. |
winv |
inverse of (weights*sphere) matrices returned by the ica function. It represent the component distribution of activity across the electrodes. |
components |
array of components to project. |
| Outputs: | |
proj |
projection of the components |
variance |
variance of the original signal that the selected components account for. |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |