-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUpdateZ.m
26 lines (24 loc) · 847 Bytes
/
UpdateZ.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function [z,S,L,omisc] = UpdateZ(z,f,mu,Wa,Wv,A,s,noise)
% Update latent variables for one observation
% FORMAT [z,S,L,omisc] = UpdateZ(z,f,mu,Wa,Wv,A,s,noise)
%
% z - Vector of latent variables
% f - This observation
% mu - Mean
% Wa - Appearance basis functions
% Wv - Shape basis functions
% A - Precision matrix of z (assumed zero mean)
% s - Settings. Uses s.v_settings, s.nit, s.vx & s.int_args
% noise - Noise precision (Gaussian model only)
%
% S - Covariance of uncertainty of z (Laplace approximation)
% L - Log-likelihood
% omisc - An assortment of statistics
%
%__________________________________________________________________________
% Copyright (C) 2017 Wellcome Trust Centre for Neuroimaging
% John Ashburner
% $Id$
[z,S,L,omisc] = UpdateZpar({z(:)},{f},mu,Wa,Wv,A,s,noise);
z = z{1};
S = S{1};