I am trying to use ICA to denoise an EEG signal. I am currently using the MultivariateStats.jl to perform the ICA:
W = fit(ICA, data, num_elec)
This returns the mixing matrix as an ICA model. I want the inverse of this matrix. However, W is an ICA model and not a matrix so I get an error when I try to do:
inverse_W = inv(W)
I get this error:
MethodError: no method matching inv(::ICA{Float64})
How can I get the inverse of this matrix or apply the inverse of the ICA?