<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hello Jan-Mathijs,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thank you very much for your reply, I really appreciate that time you took to read and answer to my email. If I may size the opportunity of having your attention, with the aim of not abusing of your time, I'd like to clarify some aspects related to my second
 question.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Regarding the first, I happened to realize it the very same day with further search, as clearly the 'deep dive' I first did was not so deep or at least not enough aware (I let you imagine how embarrassed I felt!).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Regarding the second,  more relevant question, I see your point and agree with that, although it's not exactly what I meant to do. </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I am <b>pre-computing the filter</b> with data from activity + baseline together (let's call it 'freq'), and what I input is the output of ft_freqanalysis (fourier) so that I have
<b>freq.fourierspctrm</b> with <b>nTtrials x nChann</b> (only 1 frequency). The caveat here is that the fourier spectra that I input in DICS has apparently only 1 frequency, but the<b> fourier coeffrcients in each trial</b> is computed at a specific,<b> different</b>,
 frequency (integers with range 120-220).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
So, the result is that I compute the filter with (e.g.,)  200 trials with CSDs at
<b>120Hz</b>, 300 trials with <b>145Hz</b> and so on. I then apply this filter to compute the source power of activity and contrasting it with baseline.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
My theoretical justification is the neurobiological assumption for which I expect the
<b>same dipoles</b> to be responsible for generating neural activity at these <b>
different frequencies</b> (and this is not the part I am questioning). What I am questioning is instead what would be the
<b>reliability and stability of the estimated spatial filter</b> since I am <b>averaging CSDs computed at different frequencies</b>.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
To summarize, while I have strong basis to motivate the neurobiological assumption, I don't know if the computation of the filter in such way results as
<b>mathematically incorrect or hardly interpretable</b>. </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Honestly, apart from you guys, I don't know who could provide me with valuable insights in such a highly specific and integrated field, this is why I asked and why I really value your help.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thank you so so much again for your attention and help in this matter.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Kind regards</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature" class="elementToProof">
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-size: 10.5pt; color: black;"><b>Enrico Sozza</b></span><span style="font-size: 10pt; color: black;">,</span><span style="color: black;"> </span><span style="font-size: 10pt; color: black;"><i>PhD Student</i></span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">Brainlab â€“ Cognitive Neuroscience Research Group</span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">Department of Clinical Psychology and Psychobiology</span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">Institute of Neurosciences</span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">University of Barcelona</span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm; font-family: Calibri, sans-serif; font-size: 11pt;">
<span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">P. Vall d'Hebron 171, 08035 Barcelona, Catalonia-Spain</span><span style="font-family: "Calibri Light", sans-serif; font-size: 9pt; color: rgb(102, 102, 102);"><br>
</span><span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);">Tel: +34 933 125 058 â€“ Fax: +24 934 021 584</span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm;"><span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><u><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ub.edu%2Fbrainlab%2Fteam-post%2Fenrico-sozza&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113544960420%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=yHml7zl%2F2a8QazH%2Fx675wp2FvJY%2BYkgvLKE%2BoUxW%2BYc%3D&reserved=0" originalSrc="http://www.ub.edu/brainlab/team-post/enrico-sozza" id="OWAa1cb5aff-40df-e7c3-7c81-07a526c3172a" class="OWAAutoLink" style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px;">http://www.ub.edu/brainlab/team-post/enrico-sozza</a></u></span></p>
<p style="background-color: rgb(255, 255, 255); margin: 0cm;"><span style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 9pt; color: rgb(0, 0, 0);"><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.neurociencies.ub.edu%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113544970641%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=EJflQ4VhZJlZXkJI3Sm27KBMfPrBjJJO8FVk59FYlFg%3D&reserved=0" originalSrc="http://www.neurociencies.ub.edu/" id="OWA9a42d61e-6797-f9b9-31ef-b2abf7a076c7" class="OWAAutoLink" style="color: rgb(0, 0, 0); margin: 0px;">http://www.neurociencies.ub.edu</a> </span></p>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip@science.ru.nl><br>
<b>Sent:</b> 29 March 2025 13:11<br>
<b>To:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br>
<b>Cc:</b> Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen@donders.ru.nl><br>
<b>Subject:</b> Re: [FieldTrip] DICS in fieldtrip: Hermitian vs not Hermitian spectral matrix computations - Multiple frequencies</font>
<div> </div>
</div>
<div style="line-break:after-white-space">Hi Enrico,
<div><br>
</div>
<div>Nice that you dove into the code so deeply. With respect to your worries about computing the CSD-matrix from a matrix with Fourier coefficients as per the matlab syntax tmp*tmp’ I hope I can take these away by saying that the â€œ â€˜ â€œ operator (the apostrophe)
 acutally DOES a complex conjugate transposition of the matrix. (as opposed to â€œ .’ â€œ, i.e. a dot followed by an apostrophe, which is a â€™normal’ transpose)<br id="x_lineBreakAtBeginningOfMessage">
<div><br>
</div>
<div>Regarding your second question: I am not sure whether I fully understand, but I assume that you mean to ask about applying previously computed spatial filters optimized for frequency band X, to data that quantifies frequency band Y (where Y is not contained
 by the frequency band X)? I follow your reasoning, but I would say that this is somewhat suboptimal, even indeed as you say that different frequency components might have the same (at least at the spatial resolution permitted by the measurement technique)
 neurobiological origins. The reason for this is that the idea that underlies the mathematics of the beamformers is not only that it aims to not distort activity originating from the current location of interest (i.e. the dipole source that you considering
 for a given iteration of the scanning loop across all potential dipole positions in your source model), but that it also aims at suppressing potentially distortive effects of uncorrelated sources outside the current location of interest. Thus, a spatial filter
 for a particular dipole location does not only reflect properties of the (possibly present) neural source at that location, but also implicitly reflects the other sources of the overall signal at frequency band X. </div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div>On 27 Mar 2025, at 16:17, Enrico Sozza via fieldtrip <fieldtrip@science.ru.nl> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Hello FieldTrip community allies,</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
I come to seek your help in a field that goes way deeper than what my background allows me to understand, so forgive me beforehand if my questions come as no-sense or missing solid theoretical bases.</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
I am trying to source localize oscillatory EEG data through DICS beamforming and I came across some theoretical/methodological doubts that I couldn't clarify through the available documentation. </div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
The first is related to the 'equivalence' of the output of ft_sourceanalysis with method DICS depending on what type of data you input: for what I read, it seems you can feed it with frequency data as output of ft_freqanalysis<span class="x_Apple-converted-space"> </span><u>with
 either output 'fourier' or 'powandcsd</u>' and expect the same computation. </div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Yet, after a deep dive into the functions, it seems that in ft_checkdata, with freq.fourierspctrm as input, computes<u> just a symmetrical matrix</u> (Cf, to be inverted later on) but n<u>ot the Hermitan transpose with the complex conjugates (Actual CSD matrix)</u>,
 which seems to be critical for an adequate estimation of spectral properties and spatial relationship. So, I would say it is not actually the same, and I would say is mathematically 'invalid' (?).  If so, why is it implemented in FieldTrip? Why does it compute</div>
<div style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; background-color:white; margin:0px; padding:30px">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
data.fourierspctrm = reshape(data.fourierspctrm, [nrpt nchn nfrq*ntim]);</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
crsspctrm = complex(zeros(nchn,nchn,nfrq*ntim));</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
for k = 1:nfrq*ntim</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
tmp = transpose(data.fourierspctrm(:,:,k));</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
tmp(~isfinite(tmp)) = 0;</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
n = sum(tmp~=0,2);</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
crsspctrm(:,:,k) = tmp*tmp'./n(1);</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; line-height:1.38; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(147,69,17)">
end</div>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
instead of:  </div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<span style="">    <span class="x_Apple-converted-space"> </span></span><span style="color:rgb(147,69,17)">crsspctrm(:,:,k) = tmp*conj(tmp')./n(1); </span></div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
I guess manually changing the function it is somehow not suggested, otherwise it would have been coded as such since the beginning, but I am still left with quite a bit of uncertainty in such regard.</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
My other question is: </div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
I know DICS is implemented to computing spatial filters tailored to a<span class="x_Apple-converted-space"> </span><u>specific frequency</u>, due to the process of averaging CSDs across trials before computing the inverse. Yet, I also saw that at the end with
 'cfg.realfilter = yes' it only works with the<span class="x_Apple-converted-space"> </span><u>real part</u> of the matrix, keeping only the information regarding near zero-lag correlated signal and ignoring any phase-related relationship. </div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Keeping this into consideration, and<span class="x_Apple-converted-space"> </span><u>assuming neurobiologically</u> that activity ad different frequencies<span class="x_Apple-converted-space"> </span><u>come from the same neural generators</u>, would it be
 mathematically inappropriate or impossible to interpret to compute DICS feeding it with fft coefficients computed at<span class="x_Apple-converted-space"> </span><u>different frequencies across trials</u>? Again, bearing in mind that the goal is source localizing
 oscillatory activity (i.e., power) at those different frequencies in different trials, assuming they come from the same sources.</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
I am learning so much about this in-depth physics of signal processing and it's quite exciting, but my resources are quite limited, and I therefore would really value and appreciate any insight from you guys, hoping that I am not already blindingly hitting
 a wall.</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Thank you very much in advance for the time you took to read this email and for your help.</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Best of luck with your work</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; text-align:left; line-height:1.38; background-color:white; margin:0px; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
Regards</div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt">
<br>
</div>
<div id="x_Signature" class="x_elementToProof" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-size:10.5pt"><b>Enrico Sozza</b></span><span style="font-size:10pt">,</span><span style=""> </span><span style="font-size:10pt"><i>PhD Student</i></span></div>
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">Brainlab â€“ Cognitive Neuroscience Research Group</span></div>
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">Department of Clinical Psychology and Psychobiology</span></div>
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">Institute of Neurosciences</span></div>
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">University of Barcelona</span></div>
<div style="margin:0cm; background-color:rgb(255,255,255); font-family:Calibri,sans-serif; font-size:11pt">
<span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">P. Vall d'Hebron 171, 08035 Barcelona, Catalonia-Spain</span><span style="font-family:"Calibri Light",sans-serif; font-size:9pt; color:rgb(102,102,102)"><br>
</span><span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt">Tel: +34 933 125 058 â€“ Fax: +24 934 021 584</span></div>
<div style="margin:0cm; background-color:rgb(255,255,255)"><span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:12px; background-color:rgb(255,255,255)"><u><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ub.edu%2Fbrainlab%2Fteam-post%2Fenrico-sozza&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113544978980%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=QkGm8q2rnoO3Gih8Qs9YoV7ap%2FU7QTVogvTwVijUd0w%3D&reserved=0" originalSrc="http://www.ub.edu/brainlab/team-post/enrico-sozza" originalsrc="http://www.ub.edu/brainlab/team-post/enrico-sozza" originalsrc="http://www.ub.edu/brainlab/team-post/enrico-sozza" style="margin-top:0px; margin-bottom:0px">http://www.ub.edu/brainlab/team-post/enrico-sozza</a></u></span></div>
<div style="margin:0cm; background-color:rgb(255,255,255)"><span style="font-family:"Calibri Light","Helvetica Light",sans-serif; font-size:9pt"><a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.neurociencies.ub.edu%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113544987703%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=yCqRjFKNiYde2qJCAzcqesVRd1z1G2qSKtSAB15KUA8%3D&reserved=0" originalSrc="http://www.neurociencies.ub.edu/" originalsrc="http://www.neurociencies.ub.edu/" originalsrc="http://www.neurociencies.ub.edu/" style="margin:0px">http://www.neurociencies.ub.edu</a> </span></div>
</div>
<br style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<font color="#999999" size="1" face="Arial" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none">Aquest
 missatge, i els fitxers adjunts que hi pugui haver, pot contenir informació confidencial o protegida legalment i s’adreça exclusivament a la persona o entitat destinatària. Si no consteu com a destinatari final o no teniu l’encàrrec de rebre’l, no esteu autoritzat
 a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si l’heu rebut per error, informeu-ne el remitent i elimineu del sistema tant el missatge com els fitxers adjunts que hi pugui haver.<br>
<br>
Este mensaje, y los ficheros adjuntos que pueda incluir, puede contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no consta como destinatario final ni es la persona encargada
 de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo o copiarlo, ni a revelar su contenido. Si lo ha recibido por error, informe de ello al remitente y elimine del sistema tanto el mensaje como los ficheros adjuntos que pueda contener.<br>
<br>
This email message and any attachments it carries may contain confidential or legally protected material and are intended solely for the individual or organization to whom they are addressed. If you are not the intended recipient of this message or the person
 responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any part of it. If you have received the message by mistake, please inform the sender of this and eliminate the message and any attachments it carries
 from your account.</font><span style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important"></span>
<p style="margin-top:0px; margin-bottom:0px; font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</p>
<span style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">fieldtrip
 mailing list</span><br style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113544995959%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=uiaKxiVRUiDsnc4s9v6qVa1T8Hr3Vs5IBCEMuH4lMn8%3D&reserved=0" originalSrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ccf97eed558f54ee05dbd08dd71221d94%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638791113545004579%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=78TWcSRzZs2xflpJNyzeYP35UU3YvhMp9bI7IlPTSBo%3D&reserved=0" originalSrc="https://doi.org/10.1371/journal.pcbi.1002202" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family:Helvetica; font-size:14px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<br>
<font color="#999999" size="1" face="Arial">Aquest missatge, i els fitxers adjunts que hi pugui haver, pot contenir informació confidencial o protegida legalment i s’adreça exclusivament a la persona o entitat destinatària. Si no consteu com a destinatari final
 o no teniu l’encàrrec de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si l’heu rebut per error, informeu-ne el remitent i elimineu del sistema tant el missatge com els fitxers adjunts
 que hi pugui haver.<br>
<br>
Este mensaje, y los ficheros adjuntos que pueda incluir, puede contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no consta como destinatario final ni es la persona encargada
 de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo o copiarlo, ni a revelar su contenido. Si lo ha recibido por error, informe de ello al remitente y elimine del sistema tanto el mensaje como los ficheros adjuntos que pueda contener.<br>
<br>
This email message and any attachments it carries may contain confidential or legally protected material and are intended solely for the individual or organization to whom they are addressed. If you are not the intended recipient of this message or the person
 responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any part of it. If you have received the message by mistake, please inform the sender of this and eliminate the message and any attachments it carries
 from your account.</font>
<p></p>
</body>
</html>