This is a static copy of a profile report

Home

Optimizer_cpu>Optimizer_cpu.split_class (Calls: 9, Time: 0.010 sec)
Generated 28-May-2016 14:58:48 using performance time.
class method in file /home/johs/work/clustering/src/Optimizer_cpu.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...ll_classes_within_confidence_intervalclass method9
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
89
o.P(o.nclass) = o.P(iclass) / ...
90.002 s20.5%
94
o.mu(:,o.nclass) = o.mu(:,icla...
90.002 s20.0%
97
o.Sigma(:,:,o.nclass) = o.Sigm...
90.002 s15.2%
90
o.P(iclass) = o.P(iclass) / 2;
90.001 s12.3%
95
o.mu(:,iclass) = o.mu(:,iclass...
90.001 s10.6%
All other lines  0.002 s21.4%
Totals  0.010 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
87Input argument 'worst_score' might be unused. If this is OK, consider replacing it by ~.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)3
Code lines (lines that can run)9
Code lines that did run9
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  87 
        function [o] = split_class(o, iclass, ifeature, worst_score)
< 0.01 
      9 
  88 
            o.nclass = o.nclass + 1; 
< 0.01 
      9 
  89 
            o.P(o.nclass) = o.P(iclass) / 2; 
< 0.01 
      9 
  90 
            o.P(iclass) = o.P(iclass) / 2; 
  91 

< 0.01 
      9 
  92 
            mean_shift = zeros(o.nfeature, 1, 'single'); 
< 0.01 
      9 
  93 
            mean_shift(ifeature) = 0.5*sqrt(o.Sigma(ifeature,ifeature,iclass)); 
< 0.01 
      9 
  94 
            o.mu(:,o.nclass) = o.mu(:,iclass) + mean_shift; 
< 0.01 
      9 
  95 
            o.mu(:,iclass) = o.mu(:,iclass) - mean_shift; 
  96 

< 0.01 
      9 
  97 
            o.Sigma(:,:,o.nclass) = o.Sigma(:,:,iclass); 
< 0.01 
      9 
  98 
        end 

Other subfunctions in this file are not included in this listing.