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
I am trying use this package on my data but for one trial I get an error due to the exp.binfun function.
It calculates the number of bins by dividing duration of trial with experiment binsize, and gives the right result compared to the number of samples in my behavior vector, for example, my vector is 251 elements, and duration/binSize = 251.00000... However, due to the ceil function it gets rounded up to 252 (The diff from 251 is 2.8422e-14).
I run into the same problem in line 14 of compileSparseDesignMatrix.
Is there any reason for using ceil instead of round?
Best regards, Eivind Hennestad
The text was updated successfully, but these errors were encountered:
It depends on how you define bin edges. The default binfun currently uses ceil to make sure the first bin starts at 0 and ends at the end of the binwidth. You can use a custom binfun if you'd like. All code should be calling exp.binfun, so you can replace the function handle.
Hi,
I am trying use this package on my data but for one trial I get an error due to the exp.binfun function.
It calculates the number of bins by dividing duration of trial with experiment binsize, and gives the right result compared to the number of samples in my behavior vector, for example, my vector is 251 elements, and duration/binSize = 251.00000... However, due to the ceil function it gets rounded up to 252 (The diff from 251 is 2.8422e-14).
I run into the same problem in line 14 of compileSparseDesignMatrix.
Is there any reason for using ceil instead of round?
Best regards, Eivind Hennestad
The text was updated successfully, but these errors were encountered: