It seems that all CSD estimation methods assume equal spacing of recording depths and hence what they actually need for calculation is the interval between the depths (i.e. local variable h_val).
Then, isn't it simplar to give as an argument only the interval, rather than the coordinates of all the recording depths?
I also spotted a bug in SplineiCSD() related to this point, i.e., if you give coord_electrode so that the first element of this array is not just below zero (e.g, coord_electrode = (1000E-6, 1100E-6, ...)), the class returns a wrong result (and I cannot manage to fix this bug).
It seems that all CSD estimation methods assume equal spacing of recording depths and hence what they actually need for calculation is the interval between the depths (i.e. local variable
h_val).Then, isn't it simplar to give as an argument only the interval, rather than the coordinates of all the recording depths?
I also spotted a bug in
SplineiCSD()related to this point, i.e., if you givecoord_electrodeso that the first element of this array is not just below zero (e.g,coord_electrode = (1000E-6, 1100E-6, ...)), the class returns a wrong result (and I cannot manage to fix this bug).