Open filippogambarota opened 3 years ago
Thanks to @sbrigadoi now the issue is more clear. The Weighted
argument from the script is effective only when ExcludeNullBin
is turned off (as automatically performed in the GUI). The weighted average from GUI and ERP = pop_gaverager(ALLERP, 'Weighted', 'on', 'ExcludeNullBin', 'off')
now are the same. The problem is that omitting the ExcludeNullBin
while keeping the Weighted
argument as on, force the classic average mode but the output message still reports a weighted average.
Description
Hi! I've noticed a discrepancy between the
pop_gaverager()
function and the respective function with the GUI. My guess is that theWeighted
argument is not working when used within a script. Given that the GUI is involved is difficult to write a complete reproducible example, my approach is the following: I've created 3.erp
files from GUI using:Then I've created the same set but using the
pop_gaverager()
Then I've compared the
ERP.bindata
within GUI/script and between GUI/scriptThis is my approach:
I've commented with the
isequal()
function result. Basically theweighted
,on
eoff
is not effective because data are the same. I've also noticed that regardless the GUI checked options, the history command is the same across examples.Versions