1 %> @brief Visualization - Loadings plots or Peak Location plots
for loadings vectors
3 %> @sa uip_vis_loadings.m
6 %> (optional) Hint dataset. Used to plot a black dashed thin spectrum line on the background
8 %> =1. (
int vector) Index of columns from the Loadings matrix
10 %> =0. Whether to trace a dashed horizontal line to show a minimum altiture threshold from the @c
peakdetector
12 %> This
property is only used
if the @pc
peakdetector has been specified
13 flag_trace_minalt = 0;
14 %> =0. Whether to take the abs() of the of the loadings
16 %> =[]. Peak detector to mark peaks in the Loadings and Peak Location plots
18 %> =0. Loadings Envelope mode. When loadings are very spiky, this can be set to =1 to merge adjacent peaks with a thicker line.
20 %> This only takes effect if @c flag_bmtable is 0
22 %> =0. Activates the "Peak Location Plot" mode
28 o.classtitle = 'Loadings';
29 o.inputclass = {
'fcon_linear',
'block_cascade_base'};
33 methods(Access=
protected)
34 function out = do_use(o, obj)
37 legends = obj.get_L_fea_names(o.idx_fea);
40 if ~isempty(o.data_hint)
41 hintx = o.data_hint.fea_x;
42 hinty = mean(o.data_hint.X, 1);
48 if any(o.idx_fea > size(obj.L, 2))
49 irerror(sprintf('There are only %d loadings!', size(obj.L, 2)));
53 draw_loadings(obj.L_fea_x, obj.L(:, o.idx_fea), hintx, hinty, legends, o.flag_abs, ...
54 o.peakdetector, o.flag_trace_minalt, flag_p, flag_p, 0, o.flag_envelope);
56 draw_loadings_pl(obj.L_fea_x, obj.L(:, o.idx_fea), hintx, hinty, legends, o.flag_abs, ...
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)
Visualization - Loadings plots or Peak Location plots for loadings vectors.
function set_title(in s, in obj)
function draw_loadings_pl(in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in colorindexes)