Hi Eugene,
Yes, you can use a code component! Create a variable at the beginning of the experiment whose value is []
:
thStore = []
then at the end of each routine use .append()
to append the threshold value to it:
thStore.append(thresholdValue)
then, at the beginning of your feature task, you can calculate the mean:
value = (thStore[-1] + thStore[-2] + thStore[-3] + thStore [-4])/4