TimeseriesFeatures.FeatureArrays.FeatureArray
— TypeF = FeatureArray(data::AbstractArray, features::Union{Tuple{Symbol},Vector{Symbol}}, [timeseries::Union{Vector, Tuple}], args...)
Construct a FeatureArray
, which annotates the array data
with names of features
along rows and, optionally, timeseries
along columns. Since FeatureArray <: AbstractFeatureArray <: AbstractDimArray
, further arguments to the FeatureArray
constructor are passed to the DimArray
constructor. To access feature names, use getnames(F)
.
Examples
data = rand(Int, 2, 10) # Some feature matrix with 2 features and 10 timeseries
F = FeatureArray(data, [:sum, :length])
TimeseriesFeatures.FeatureArrays.FeatureMatrix
— TypeFeatureArray{T, 2} where {T}
An alias to construct a FeatureArray
for a flat set of timeseries.
Examples
data = rand(Int, 2, 3) # Some feature matrix with 2 features and 3 timeseries
F = FeatureMatrix(data, [:sum, :length], [1, 2, 3])
TimeseriesFeatures.FeatureArrays.FeatureVector
— TypeFeatureArray{T, 1} where {T}
An alias to construct a FeatureArray
for a single time series.
Examples
data = randn(2) # Feature values for 1 time series
𝐟 = FeatureVector(data, [:sum, :length])
TimeseriesFeatures.FeatureArrays.featureDims
— Methodgetnames(𝒇::FeatureArray)
Get the names of features represented in the feature vector or array 𝒇 as a vector of symbols.