csci5521/assignments/hwk02/Problem1/Param_Est.m

25 lines
671 B
Mathematica
Raw Normal View History

2023-10-12 23:51:06 +00:00
% implements Param_Est, returns the parameters for each Multivariate Gaussian
% (m1: learned mean of features for class 1, m2: learned mean of features
% for class 2, S1: learned covariance matrix for features of class 1,
% S2: learned covariance matrix for features of class 2)
function [m1 m2 S1 S2] = Param_Est(training_data, training_labels, part)
% Parameter estimation for 3 different models described in homework
if(strcmp(part, '3'))
% TODO: compute parameters for model 3
elseif(strcmp(part, '2'))
% TODO: compute parameters for model 2
elseif(strcmp(part, '1'))
% TODO: compute parameters for model 1
end
end % Function end