rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
hp_plot_number.m
1 
2 function hp_plot_number( hp_model )
3 %function hp_plot_number( hp_model )
4 %
5 % labels the printed subdomains (hp_plot_domains or hp_plot_domains_full)
6 % with the number of RB vectors of the subdomains
7 hold on;
8 plot_number(hp_model.tree);
9 
10  function plot_number(tree)
11  t= iscell(tree);
12  % Naviagation durch den gesammten Baum
13  if t==1
14  plot_number(tree{1});
15  plot_number(tree{2});
16  else
17  %Ausgabe des Traingssets in zufälliger Farbe
18  % hold on;
19 
20  a=sum( tree.training')/length(tree.training);
21 
22 
23  % h=plot(tree.training(1,:),tree.training(2,:),'.','LineWidth', 2, 'MarkerSize', 8);
24  TextH = text(a(1),a(2), ...
25  num2str([tree.detailed_data.N]), ...
26  'Units', 'normalized', ...
27  'VerticalAlignment', 'top', ...
28  'HorizontalAlignment', 'right');
29  %c= rand_uniform(3,{[0.5 1]});
30  % c=tree.parameters;
31 
32  % set(h, 'Color',c);
33  % set(TextH,'BackgroundColor',c);
34  end
35  end
36 
37 
38 end