This is a static copy of a profile report

Home

Optimizer_cpu>Optimizer_cpu.split_until_all_classes_within_confidence_interval (Calls: 1, Time: 6.367 sec)
Generated 28-May-2016 14:58:45 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
AMoG_cpufunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
35
[o, niteration] = MoGEM(o, sam...
95.675 s89.1%
28
scores = score(o, weights, sam...
90.329 s5.2%
20
o.Sigma = cov(samples');
10.201 s3.2%
26
pdfs = pdfs_from_samples(o, sa...
90.075 s1.2%
18
o.P = ones(1, 1, 'single');
10.038 s0.6%
All other lines  0.049 s0.8%
Totals  6.367 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
Optimizer_cpu>Optimizer_cpu.MoGEMclass method95.674 s89.1%
Optimizer_cpu>Optimizer_cpu.scoreclass method90.327 s5.1%
covfunction10.199 s3.1%
...pu>Optimizer_cpu.pdfs_from_samplesclass method90.073 s1.1%
Optimizer_cpu>Optimizer_cpu.split_classclass method90.010 s0.2%
...pu>Optimizer_cpu.weights_from_pdfsclass method90.006 s0.1%
meanfunction10.003 s0.1%
...zer_cpu.determine_least_fitting_classclass method90.002 s0.0%
config_cpufunction10.000 s0.0%
Self time (built-ins, overhead, etc.)  0.071 s1.1%
Totals  6.367 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)5
Code lines (lines that can run)20
Code lines that did run18
Code lines that did not run2
Coverage (did run/can run)90.00 %
Function listing
time 
Calls 
 line
  14 
        function [o] = split_until_all_classes_within_confidence_interval(o, samples)
< 0.01 
      1 
  15 
            o.nclass = 1; 
< 0.01 
      1 
  16 
            [o.nfeature, o.nsample] = size(samples); 
  17 

  0.04 
      1 
  18 
            o.P = ones(1, 1, 'single'); 
  0.02 
      1 
  19 
            o.mu = mean(samples, 2); 
  0.20 
      1 
  20 
            o.Sigma = cov(samples'); 
  21 

< 0.01 
      1 
  22 
            o.C = config_cpu(); 
  23 

< 0.01 
      1 
  24 
            while o.nclass < o.C.MAX_CLASSES 
< 0.01 
      9 
  25 
				tsplit = toc; 
  0.07 
      9 
  26 
                pdfs = pdfs_from_samples(o, samples); 
< 0.01 
      9 
  27 
                weights = weights_from_pdfs(o, pdfs); 
  0.33 
      9 
  28 
                scores = score(o, weights, samples); 
  29 

< 0.01 
      9 
  30 
                [iclass,ifeature,worst_score] = determine_least_fitting_class(o, scores); 
< 0.01 
      9 
  31 
                if o.nclass >= o.C.MIN_CLASSES && worst_score <= 1.0 
  32 
                    break
  33 
                end
  0.01 
      9 
  34 
                o = split_class(o, iclass, ifeature, worst_score); 
  5.68 
      9 
  35 
                [o, niteration] = MoGEM(o, samples); 
< 0.01 
      9 
  36 
				fprintf('%-10s %10.6f %10.6f score %7.2f class %2d feature %d nMoGEMIteration %4lu\n', 'SPLIT', tsplit, toc, worst_score, iclass-1, ifeature-1, niteration); 
< 0.01 
      9 
  37 
            end 
< 0.01 
      1 
  38 
        end 

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