1 %> @brief Visualization - Cluster Vectors
6 %> Input dataset. This dataset is used to calculate the average spectrum
for each class
10 %> See vis_loadings::idx_class_origin
13 flag_trace_minalt = 0;
26 o.classtitle = 'Cluster Vectors';
27 o.inputclass = {
'fcon_linear',
'block_cascade_base'};
31 methods(Access=
protected)
32 function out = do_use(o, obj)
34 CV =
data_get_cv(o.data_input, obj.L, o.idx_class_origin);
37 if ~isempty(o.data_hint)
38 hintx = o.data_hint.fea_x;
39 hinty = mean(o.data_hint.X, 1);
45 % Eliminates the vector corresponding to the origin class
46 % This will synchonize colors with other plots that plot data from the
48 labels = o.data_input.classlabels;
49 colorindexes = 1:size(CV, 2);
50 if o.idx_class_origin > 0
51 CV(:, o.idx_class_origin) = [];
52 labels(o.idx_class_origin) = [];
53 colorindexes(o.idx_class_origin) = [];
58 draw_loadings(o.data_input.fea_x, CV, hintx, hinty, labels, o.flag_abs, ...
59 o.peakdetector, o.flag_trace_minalt, flag_p, flag_p, 0, o.flag_envelope, colorindexes);
62 draw_loadings_pl(o.data_input.fea_x, CV, hintx, hinty, labels, o.flag_abs, ...
63 o.peakdetector, colorindexes);
Property flag_trace_minalt
Property flag_abs
=0. Whether to take the abs() of the of the loadings
Visualization base class.
function draw_loadings(in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in flag_trace_minalt, in flag_draw_peaks, in flag_print_peaks, in flag_histogram, in flag_envelope, in colors)
Property flag_bmtable
=0. Activates the "Peak Location Plot" mode
Property data_hint
(optional) Hint dataset. Used to plot a black dashed thin spectrum line on the background ...
function data_get_cv(in data, in L, in idx_class_origin)
function set_title(in s, in obj)
Visualization - Cluster Vectors.
function draw_loadings_pl(in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in colorindexes)
Property peakdetector
=[]. Peak detector to mark peaks in the Loadings and Peak Location plots