資源簡介
This is simulation of leader follower control system.
代碼片段和文件信息
function?[features?targets?label?W]?=?Leader_Follower(train_features?train_targets?params?region?plot_on)?
?
%Reduce?the?number?of?data?points?using?the?basic?leader-follower?clustering?algorithm?
%Inputs:?
% train_features -?Input?features?
% train_targets -?Input?targets?
% params? -?Algorithm?parameters:?[[Min?distance?to?connect?Rate?of?convergence]]?
% region -?Decision?region?vector:?[-x?x?-y?y?number_of_points]?
%???plot_on?????????-?Plot?stages?of?the?algorithm?
%?
%Outputs?
% features -?New?features?
% targets -?New?targets?
% label -?The?labels?given?for?each?of?the?original?features?
%???W???????????????-?Weights?matrice?
?
if?(nargin?5)?
????plot_on?=?0;?
end?
[theta?eta]?=?process_params(params);?
?
[DL] =?size(train_features);?
?
評論
共有 條評論