Skip to content

Linear univariate time variant model implemented? #321

@jsimons8

Description

@jsimons8

I was wondering if the method LinearUnivariateTimeVariant was already implemented?

The call

Ze = [[1.; 0] for _ in 1:15];
Te = [[1. 1; 0 1] for _ in 1:15];
Re = [[1. 0; 0 1] for _ in 1:15];
de = convert(Array{Float64,1},zeros(15));
ce = [[0., 0] for _ in 1:15];
He = tv_observational_noise;
Qe = [[1. 0; 0 1] for _ in 1:15];

tv_var_model = StateSpaceModels.LinearUnivariateTimeVariant(mu_hat_i[1,1,:],Ze,Te,Re,de,ce,He,Qe)

where tv_observational_noise is a Vector{Float64} with the same (15) number of elements. This call yielded the following error:

MethodError: no method matching LinearUnivariateTimeVariant(::Vector{Float64}, ::Vector{Vector{Float64}}, ::Vector{Matrix{Float64}}, ::Vector{Matrix{Float64}}, ::Vector{Float64}, ::Vector{Vector{Float64}}, ::Vector{Float64}, ::Vector{Matrix{Float64}})

Given, I have observed all types, I am wondering if this is because the method is not implemented?

If it is implemented, do you think you can help me fix the call? Moreover, I was hoping to estimate the time-independent Q_t hyperparameter but the method definition seems to ask for a Q_t without the possibility of its estimation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions