I want to implement my own time series data structure and I want to do it using ScalaNLP Breeze. Now my first thought was to do this using a type like this:
type RowNumber = Long
Map[LocalDateTime, RowNumber]
However after reading more about breeze available data structures i found Counter2
which seems to be exactly what I need.
Now I do have two questions:
- Would implementing a time series abstraction on top of breeze using
Counter
andCounter2
be the best way to do this? - Are all matrix operations supported on
Counter2
(docs says only array operations are supported for Counter)?