mbauman / Signals.jl

An abandoned work-in-progress for a high level Signal type with a common timebase (in seconds) and groups of channels. Deprecated in favor of AxisArrays.jl.
github.com/JuliaArrays/AxisArrays.jl
Other
6 stars 0 forks source link

Matrix Signals #2

Closed mbauman closed 9 years ago

mbauman commented 10 years ago

I require all signals to have a Vector of channels. I like the simplicity of that. However, some algorithms (e.g., PCA of spike snippets) require all the channels to be in a column matrix, and some datafiles return large datasets as columns in matrices, too. Given that we don't have fixed-length arrays, we cannot convert from one to the other without copying.

The current solution to this is to use ArrayViews, which works surprisingly well. But there are a few things I don't like about it.

Perhaps a better solution here is a MatrixSignal type, which only holds a matrix and defines its own indexing such that ms[i] -> ms.matrix[:,i].