Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
pbdlib-matlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rli
pbdlib-matlab
Commits
6e3eeead
Commit
6e3eeead
authored
Jul 31, 2014
by
Leonel Rozo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First version of a function computing the product of Gaussians
parent
3085003d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
gaussianProduct.m
gaussianProduct.m
+22
-0
No files found.
gaussianProduct.m
0 → 100644
View file @
6e3eeead
function
[
Mu
,
Sigma
]
=
gaussianProduct
(
model
,
p
)
% Leonel Rozo, 2014
%
% Compute the product of Gaussians for a task-parametrized model where the
% set of parameters are stored in the variable 'p'.
% GMM products
for
i
=
1
:
model
.
nbStates
% Reallocating
SigmaTmp
=
zeros
(
model
.
nbVar
);
MuTmp
=
zeros
(
model
.
nbVar
,
1
);
% Product of Gaussians
for
m
=
1
:
model
.
nbFrames
MuP
=
p
(
m
)
.
A
*
model
.
Mu
(:,
m
,
i
)
+
p
(
m
)
.
b
;
SigmaP
=
p
(
m
)
.
A
*
model
.
Sigma
(:,:,
m
,
i
)
*
p
(
m
)
.
A
'
;
SigmaTmp
=
SigmaTmp
+
inv
(
SigmaP
);
MuTmp
=
MuTmp
+
SigmaP
\
MuP
;
end
Sigma
(:,:,
i
)
=
inv
(
SigmaTmp
);
Mu
(:,
i
)
=
Sigma
(:,:,
i
)
*
MuTmp
;
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment