You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function buildGLM.addCovariateSpiketrain might have a bug. It forces the offset to be 1 (line 11), disregarding the value in the basisStruct and without taking into account the unit of time or the bin size used.
For example, if the unit of time is set to be seconds, the offset will be forced to be 1 second.
Or, if another offset value has been set using basis functions, it will not be considered.
A solution to this issue could be:
% offset = 1; % Make sure to be causal. No instantaneous interaction allowed.
offset = basisStruct.param.nlOffset;
The text was updated successfully, but these errors were encountered:
Actually, regarding the unit of time, I think it is important to point out that the functions buildGLM.addCovariateTiming, buildGLM.addCovariateBoxcar and buildGLM.addCovariateRaw (which in turn call the function buildGLM.addCovariate)
want the input offset in ms even if you have unitOfTime = 's'.
Furthermore, I add issues using basisFactory.makeNonlinearRaisedCos with unitOfTime = 's'
so I changed its line 32 in
The function
buildGLM.addCovariateSpiketrain
might have a bug. It forces the offset to be 1 (line 11), disregarding the value in the basisStruct and without taking into account the unit of time or the bin size used.For example, if the unit of time is set to be seconds, the offset will be forced to be 1 second.
Or, if another offset value has been set using basis functions, it will not be considered.
A solution to this issue could be:
The text was updated successfully, but these errors were encountered: