JuliaDynamics / StateSpaceSets.jl

The `StateSpaceSet` interface for packages of JuliaDynamics
MIT License
2 stars 3 forks source link

Multiple-input `hcat` method for combinations of `Vector`/`Dataset` #8

Closed kahaaga closed 1 year ago

kahaaga commented 1 year ago

This PR allows creating new datasets by horizontally concatenating multiple vectors and datasets, e.g. Dataset(rand(100), rand(100), Dataset(rand(200, 3)). The previous three-or-more-arguments variants only accepted either Vector or Dataset, both not a mixture of both.

This operation is common in CausalityTools when doing conditional tests, where the conditioning set is a Dataset, while the original time series are regular Vectors. The methods in this PR could exist as utility methods in CausalityTools, but I think this should be available here.

Datseris commented 1 year ago

Yes, but you shouldn't increment minor version here. Before 1.0 release, non-breaking changes increment patch number!