Skip to content

Commit

Permalink
Fix time indexing for transient prior gains
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Apr 30, 2021
1 parent 512065b commit f0cef38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @kalmanFilter/run.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

% Get the sites, time steps, priors, and R covariance associated with each gain
for g = 1:numel(covGains)
t = times(whichGain == covGains(g));
t = find(whichGain == covGains(g));
s = sites(:, t(1));
Rk = kf.Rcovariance(t(1), s);

Expand Down

0 comments on commit f0cef38

Please sign in to comment.